summaryrefslogtreecommitdiffstats
path: root/lib/backing_store_qt.cpp
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@digia.com>2013-05-24 22:18:06 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-05-31 10:55:54 +0200
commit7de54759987a661d902d37fc9e221a2552988321 (patch)
tree594aa953d81d5a1fcfe04dbddfdc32d029ed3792 /lib/backing_store_qt.cpp
parent8163c2e8d02961df12cc9447019edc762243ccd1 (diff)
Fix source coordinates for backingstore when reloading.
Diffstat (limited to 'lib/backing_store_qt.cpp')
-rw-r--r--lib/backing_store_qt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/backing_store_qt.cpp b/lib/backing_store_qt.cpp
index 84688ec9b..1a057e479 100644
--- a/lib/backing_store_qt.cpp
+++ b/lib/backing_store_qt.cpp
@@ -72,8 +72,8 @@ void BackingStoreQt::PaintToBackingStore(content::RenderProcessHost *process,
for (size_t i = 0; i < copy_rects.size(); ++i) {
gfx::Rect copy_rect = gfx::ToEnclosedRect(gfx::ScaleRect(copy_rects[i], scale_factor));
- QRect source = QRect( copy_rect.x()
- , copy_rect.y()
+ QRect source = QRect( copy_rect.x() - pixel_bitmap_rect.x()
+ , copy_rect.y() - pixel_bitmap_rect.y()
, copy_rect.width()
, copy_rect.height());