aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2013-11-23 23:49:07 +0100
committerJohannes Schickel2013-11-24 00:15:47 +0100
commit129e891a875ad2df269e2b4b18bae7e2d2e57208 (patch)
tree73efcbbb7a6c03a237e944bb37d17f14520eecdd
parent50d122ed79c38081985f43aed2494a83b2fc1676 (diff)
downloadscummvm-rg350-129e891a875ad2df269e2b4b18bae7e2d2e57208.tar.gz
scummvm-rg350-129e891a875ad2df269e2b4b18bae7e2d2e57208.tar.bz2
scummvm-rg350-129e891a875ad2df269e2b4b18bae7e2d2e57208.zip
GUI: Fix ListWidget::getEditRect's returned height.
-rw-r--r--gui/widgets/list.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/widgets/list.cpp b/gui/widgets/list.cpp
index 8ecb31311f..8b8eb31db9 100644
--- a/gui/widgets/list.cpp
+++ b/gui/widgets/list.cpp
@@ -541,7 +541,7 @@ void ListWidget::drawWidget() {
}
Common::Rect ListWidget::getEditRect() const {
- Common::Rect r(_hlLeftPadding, 0, _w - _hlLeftPadding - _hlRightPadding, kLineHeight - 1);
+ Common::Rect r(_hlLeftPadding, 0, _w - _hlLeftPadding - _hlRightPadding, kLineHeight - 2);
const int offset = (_selectedItem - _currentPos) * kLineHeight + _topPadding;
r.top += offset;
r.bottom += offset;