aboutsummaryrefslogtreecommitdiff
path: root/gui/ListWidget.cpp
diff options
context:
space:
mode:
authorMax Horn2002-07-12 23:00:35 +0000
committerMax Horn2002-07-12 23:00:35 +0000
commiteeb23d5a924a8487b57ab5cbd6e325c03074ce4d (patch)
treeab28f57a65c0811de8aa598161dc6a06e6a861fb /gui/ListWidget.cpp
parentd16bf9a102e812cb7a828d7f163fffa9a802737e (diff)
downloadscummvm-rg350-eeb23d5a924a8487b57ab5cbd6e325c03074ce4d.tar.gz
scummvm-rg350-eeb23d5a924a8487b57ab5cbd6e325c03074ce4d.tar.bz2
scummvm-rg350-eeb23d5a924a8487b57ab5cbd6e325c03074ce4d.zip
implemented scrollbar 'dragging' (based largely on painelf's patch)
svn-id: r4527
Diffstat (limited to 'gui/ListWidget.cpp')
-rw-r--r--gui/ListWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/ListWidget.cpp b/gui/ListWidget.cpp
index 4d4c42bb72..4216d67a60 100644
--- a/gui/ListWidget.cpp
+++ b/gui/ListWidget.cpp
@@ -41,7 +41,7 @@
ListWidget::ListWidget(Dialog *boss, int x, int y, int w, int h)
- : Widget(boss, x, y, w - SCROLLBAR_WIDTH, h)
+ : Widget(boss, x, y, w - kScrollBarWidth, h)
{
_flags = WIDGET_ENABLED | WIDGET_CLEARBG;
_type = kListWidget;
@@ -49,7 +49,7 @@ ListWidget::ListWidget(Dialog *boss, int x, int y, int w, int h)
_entriesPerPage = (_h - 4) / LINE_HEIGHT;
_currentPos = 3;
- _scrollBar = new ScrollBarWidget(boss, _x + _w, _y, SCROLLBAR_WIDTH, _h);
+ _scrollBar = new ScrollBarWidget(boss, _x + _w, _y, kScrollBarWidth, _h);
_scrollBar->setTarget(this);
// FIXME - fill in dummy data for now