aboutsummaryrefslogtreecommitdiff
path: root/dw/fltkviewport.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-01-20 21:48:38 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-01-20 21:48:38 +0100
commit77c7ccca789e1a7784f0778f79bd80f75ceb100b (patch)
treee8addd3ae7ddc10569af0421f0852cbd77ffdafe /dw/fltkviewport.cc
parent211b468b1a2e837ee835736a42a7c4f4313ade7f (diff)
fix scroll performance
Diffstat (limited to 'dw/fltkviewport.cc')
-rw-r--r--dw/fltkviewport.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/dw/fltkviewport.cc b/dw/fltkviewport.cc
index a50be898..c423a3b9 100644
--- a/dw/fltkviewport.cc
+++ b/dw/fltkviewport.cc
@@ -179,10 +179,9 @@ void FltkViewport::draw ()
int d = damage();
if (d & FL_DAMAGE_SCROLL) {
- Fl::damage (FL_DAMAGE_SCROLL);
+ clear_damage (FL_DAMAGE_SCROLL);
fl_scroll(x(), y(), w () - hdiff, h () - vdiff, -scrollDX, -scrollDY, draw_area, this);
- d &= ~FL_DAMAGE_SCROLL;
- Fl::damage (d);
+ clear_damage (d & ~FL_DAMAGE_SCROLL);
}
if (d) {
@@ -369,7 +368,6 @@ void FltkViewport::scrollTo (int x, int y)
adjustScrollbarValues ();
damage(FL_DAMAGE_SCROLL);
- redraw();
theLayout->scrollPosChanged (this, scrollX, scrollY);
positionChanged();
}