summaryrefslogtreecommitdiffstats
path: root/lib/backing_store_qt.cpp
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@digia.com>2013-05-24 17:09:18 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-05-31 10:55:53 +0200
commit50732ea0bae1e71589038c95eac0f9ddda504e88 (patch)
treee6275938ecc4a490fa19b81e28aa36007f18fb94 /lib/backing_store_qt.cpp
parentd13cb9b2c5fdbd8655faef253680041e9114dfc7 (diff)
Fix scrolling
Diffstat (limited to 'lib/backing_store_qt.cpp')
-rw-r--r--lib/backing_store_qt.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/backing_store_qt.cpp b/lib/backing_store_qt.cpp
index ecaa2c50a..4f04e5703 100644
--- a/lib/backing_store_qt.cpp
+++ b/lib/backing_store_qt.cpp
@@ -74,11 +74,11 @@ void BackingStoreQt::PaintToBackingStore(content::RenderProcessHost *process,
QRect source = QRect( copy_rect.x() - pixel_bitmap_rect.x()
, copy_rect.y() - pixel_bitmap_rect.y()
- , pixel_bitmap_rect.width()
- , pixel_bitmap_rect.height());
+ , copy_rect.width()
+ , copy_rect.height());
- QRect destination = QRect( copy_rect.x()
- , copy_rect.y()
+ QRect destination = QRect( copy_rect.x() - pixel_bitmap_rect.x()
+ , copy_rect.y() - pixel_bitmap_rect.y()
, copy_rect.width()
, copy_rect.height());
@@ -90,9 +90,9 @@ void BackingStoreQt::PaintToBackingStore(content::RenderProcessHost *process,
void BackingStoreQt::ScrollBackingStore(const gfx::Vector2d &delta, const gfx::Rect &clip_rect, const gfx::Size &view_size)
{
- // DCHECK(delta.x() == 0 || delta.y() == 0);
+ DCHECK(delta.x() == 0 || delta.y() == 0);
- // m_pixelBuffer.scroll(delta.x(), delta.y(), clip_rect.x(), clip_rect.y(), clip_rect.width(), clip_rect.height());
+ m_pixelBuffer.scroll(delta.x(), delta.y(), m_pixelBuffer.rect());
}
bool BackingStoreQt::CopyFromBackingStore(const gfx::Rect &rect, skia::PlatformBitmap *output)