Remove reverse-applicable patch.

ubuntu/lunar
Simon Quigley 2 years ago
parent 0f7e8289e8
commit 5c8f02fa9d

1
debian/changelog vendored

@ -4,6 +4,7 @@ lximage-qt (1.2.0-0ubuntu1) UNRELEASED; urgency=medium
* Fix the watch file, for real this time.
* Lubuntuify the package slightly, to make debhelper happy.
* Bump build dependencies in debian/control.
* Remove reverse-applicable patch.
-- Simon Quigley <tsimonq2@ubuntu.com> Thu, 17 Nov 2022 17:43:52 -0600

@ -1,27 +0,0 @@
From a526f1b0fcfe1d15368c1d3fdf4676c40fb8524d Mon Sep 17 00:00:00 2001
From: tsujan <tsujan2000@gmail.com>
Date: Tue, 21 Jun 2022 01:14:55 +0430
Subject: [PATCH] Fixed repainting of cached images (#558)
Previously, the cached pixmap was drawn inside the repaint rectangle. That was wrong because there's no guarantee that the repaint rectangle is as big as the cached pixmap (e.g., it isn't so when the toolbar extension popup covers a part of the image and slides back). Therefore, visual glitches were imminent in special cases.
This patch draws the cached pixmap inside its corresponding cache rectangle, so that the image is always repainted correctly. The paint clipping is done by Qt automatically, as QPaintEvent's doc explains.
Fixes https://github.com/lxqt/lximage-qt/issues/557
---
src/imageview.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/imageview.cpp b/src/imageview.cpp
index 4a0c6b2..aa13393 100644
--- a/src/imageview.cpp
+++ b/src/imageview.cpp
@@ -630,7 +630,7 @@ void ImageView::paintEvent(QPaintEvent* event) {
if(cachedRect_.contains(repaintImageRect)) {
QPainter painter(viewport());
painter.fillRect(event->rect(), backgroundBrush());
- painter.drawPixmap(repaintImageRect, cachedPixmap_);
+ painter.drawPixmap(cachedRect_, cachedPixmap_);
// outline
if(showOutline_) {
QColor col = QColor(Qt::black);

@ -1 +0,0 @@
fix-repainting-cached-images.patch
Loading…
Cancel
Save