diff options
author | Alexander Tkachev | 2016-06-22 17:59:46 +0600 |
---|---|---|
committer | Eugene Sandulenko | 2016-07-03 12:18:34 +0200 |
commit | 9c1eab6415729b1c5edf362f0792cde250a382ab (patch) | |
tree | aaac43f364730999936b9e21c87e295d2909b5b1 | |
parent | cccf6eed785c232b430b722e1025be3a8e5f4784 (diff) | |
download | scummvm-rg350-9c1eab6415729b1c5edf362f0792cde250a382ab.tar.gz scummvm-rg350-9c1eab6415729b1c5edf362f0792cde250a382ab.tar.bz2 scummvm-rg350-9c1eab6415729b1c5edf362f0792cde250a382ab.zip |
GUI: Fix ScrollContainerWidget look a bit
-rw-r--r-- | gui/widgets/scrollcontainer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/widgets/scrollcontainer.cpp b/gui/widgets/scrollcontainer.cpp index fffa451ad9..d27c9df0c0 100644 --- a/gui/widgets/scrollcontainer.cpp +++ b/gui/widgets/scrollcontainer.cpp @@ -53,8 +53,8 @@ void ScrollContainerWidget::recalc() { _verticalScroll->_numEntries = _h + 40; _verticalScroll->_currentPos = _scrolledY; _verticalScroll->_entriesPerPage = _limitH; - _verticalScroll->setPos(_w - 16, _scrolledY); - _verticalScroll->setSize(16, _limitH); + _verticalScroll->setPos(_w - 16, _scrolledY+1); + _verticalScroll->setSize(16, _limitH -2); } @@ -104,7 +104,7 @@ void ScrollContainerWidget::reflowLayout() { } void ScrollContainerWidget::drawWidget() { - g_gui.theme()->drawDialogBackground(Common::Rect(_x, _y, _x + _w, _y + getHeight()), ThemeEngine::kDialogBackgroundDefault); + g_gui.theme()->drawDialogBackground(Common::Rect(_x, _y, _x + _w, _y + getHeight() - 1), ThemeEngine::kDialogBackgroundDefault); } Widget *ScrollContainerWidget::findWidget(int x, int y) { |