diff options
author | Zeno Albisser <zeno.albisser@digia.com> | 2013-05-24 17:27:42 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-05-31 10:55:53 +0200 |
commit | b7c9de64ae0667bc03b1162b9e825cfe65075b5b (patch) | |
tree | 49c1ce87c71b4a5efa9b9b93dda0455db5bb0a2c /lib/backing_store_qt.cpp | |
parent | c5a19a2599298da6c1fc3d3602a1d9ef787704c6 (diff) |
PaintToBackingStore: src and dst rect are the same as long as we do not implement scalin.
Diffstat (limited to 'lib/backing_store_qt.cpp')
-rw-r--r-- | lib/backing_store_qt.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/backing_store_qt.cpp b/lib/backing_store_qt.cpp index 4f04e5703..84688ec9b 100644 --- a/lib/backing_store_qt.cpp +++ b/lib/backing_store_qt.cpp @@ -72,13 +72,13 @@ 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() - pixel_bitmap_rect.x() - , copy_rect.y() - pixel_bitmap_rect.y() + QRect source = QRect( copy_rect.x() + , copy_rect.y() , copy_rect.width() , copy_rect.height()); - QRect destination = QRect( copy_rect.x() - pixel_bitmap_rect.x() - , copy_rect.y() - pixel_bitmap_rect.y() + QRect destination = QRect( copy_rect.x() + , copy_rect.y() , copy_rect.width() , copy_rect.height()); |