aboutsummaryrefslogtreecommitdiff
path: root/gui/widgets/scrollbar.h
diff options
context:
space:
mode:
authorJohannes Schickel2011-10-28 12:06:01 +0200
committerJohannes Schickel2011-10-28 12:08:15 +0200
commit7f2b2e99f8cea8258b0a28ca40ce46abd5d17347 (patch)
tree430708032c4e58893245f3208d186d9e867f3bd6 /gui/widgets/scrollbar.h
parentb0398cd53bee245f9cee61f4b9070b9ed72800d4 (diff)
downloadscummvm-rg350-7f2b2e99f8cea8258b0a28ca40ce46abd5d17347.tar.gz
scummvm-rg350-7f2b2e99f8cea8258b0a28ca40ce46abd5d17347.tar.bz2
scummvm-rg350-7f2b2e99f8cea8258b0a28ca40ce46abd5d17347.zip
GUI: Change scrollbar repeat handling from a timer proc to handleTickle.
This should be less heavy on timer usage and makes sure no race conditions will occur.
Diffstat (limited to 'gui/widgets/scrollbar.h')
-rw-r--r--gui/widgets/scrollbar.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/widgets/scrollbar.h b/gui/widgets/scrollbar.h
index 3b248ce8a4..1c9f371cbc 100644
--- a/gui/widgets/scrollbar.h
+++ b/gui/widgets/scrollbar.h
@@ -49,6 +49,12 @@ protected:
Part _draggingPart;
int _sliderDeltaMouseDownPos;
+ enum {
+ kRepeatInitialDelay = 500,
+ kRepeatDelay = 100
+ };
+ uint32 _repeatTimer;
+
public:
int _numEntries;
int _entriesPerPage;