aboutsummaryrefslogtreecommitdiff
path: root/gui/ListWidget.cpp
diff options
context:
space:
mode:
authorMax Horn2003-11-02 17:41:01 +0000
committerMax Horn2003-11-02 17:41:01 +0000
commitf0d2a1b91cee2c81a618b36cf58e2990153ddd00 (patch)
treec23c99d313045bc0333d0bc78a6fa96f29818f85 /gui/ListWidget.cpp
parent2adc1476000c43b66521f61b74f8659147ccb28a (diff)
downloadscummvm-rg350-f0d2a1b91cee2c81a618b36cf58e2990153ddd00.tar.gz
scummvm-rg350-f0d2a1b91cee2c81a618b36cf58e2990153ddd00.tar.bz2
scummvm-rg350-f0d2a1b91cee2c81a618b36cf58e2990153ddd00.zip
make coordinate calculation based on position of parent -> needed for nested widgets
svn-id: r11058
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 2216b06a43..d83042bf04 100644
--- a/gui/ListWidget.cpp
+++ b/gui/ListWidget.cpp
@@ -294,8 +294,8 @@ void ListWidget::drawCaret(bool erase) {
// The item is selected, thus _bgcolor is used to draw the caret and _textcolorhi to erase it
int16 color = erase ? gui->_textcolorhi : gui->_bgcolor;
- int x = _x + _boss->getX() + 3;
- int y = _y + _boss->getY() + 1;
+ int x = getAbsX() + 3;
+ int y = getAbsY() + 1;
Common::String buffer;
y += (_selectedItem - _currentPos) * kLineHeight;