From 9c1eab6415729b1c5edf362f0792cde250a382ab Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Wed, 22 Jun 2016 17:59:46 +0600 Subject: GUI: Fix ScrollContainerWidget look a bit --- gui/widgets/scrollcontainer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gui/widgets') 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) { -- cgit v1.2.3