aboutsummaryrefslogtreecommitdiff
path: root/dw/layout.hh
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2011-07-29 15:45:45 -0400
committerJorge Arellano Cid <jcid@dillo.org>2011-07-29 15:45:45 -0400
commitccd39b8804cba58206d254944c8e7c3bb8e02cdf (patch)
tree6ac6da3e820e51dfa5a7aa10eff8bd6edc099c0b /dw/layout.hh
parentde3a234a12734101bd35b2f64302b65a19797ed0 (diff)
avoid double draw after scrollIdle()
After going back or forward to any page, there were two redraws: one from the origin and another from the scroll position. This patch avoids flicker, and makes rendering 100% faster in this case.
Diffstat (limited to 'dw/layout.hh')
-rw-r--r--dw/layout.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dw/layout.hh b/dw/layout.hh
index 98aa4fc1..d08eb363 100644
--- a/dw/layout.hh
+++ b/dw/layout.hh
@@ -138,7 +138,7 @@ private:
style::Cursor cursor;
int canvasWidth, canvasAscent, canvasDescent;
- bool usesViewport;
+ bool usesViewport, drawAfterScrollReq;
int scrollX, scrollY, viewportWidth, viewportHeight;
bool canvasHeightGreater;
int hScrollbarThickness, vScrollbarThickness;