diff options
author | Eugene Sandulenko | 2006-06-15 12:09:53 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-06-15 12:09:53 +0000 |
commit | 65041ae239055e07b7f592f1cfcca01e1c89e159 (patch) | |
tree | 2170a3fc2a0ad877de39673ede6fcb8dd185e03f | |
parent | e939153b6ac7b59e4de05a4a047e73ec2c140cc0 (diff) | |
download | scummvm-rg350-65041ae239055e07b7f592f1cfcca01e1c89e159.tar.gz scummvm-rg350-65041ae239055e07b7f592f1cfcca01e1c89e159.tar.bz2 scummvm-rg350-65041ae239055e07b7f592f1cfcca01e1c89e159.zip |
Fix bug with tab navigation buttons jumping on resolution change.
svn-id: r23128
-rw-r--r-- | gui/TabWidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/TabWidget.cpp b/gui/TabWidget.cpp index af68b252fb..c57c3b2aca 100644 --- a/gui/TabWidget.cpp +++ b/gui/TabWidget.cpp @@ -49,7 +49,7 @@ void TabWidget::init() { _tabPadding = g_gui.theme()->getTabPadding(); _flags = WIDGET_ENABLED; - _type = kTabWidget; + _type = kTabWidget; _activeTab = -1; _firstVisibleTab = 0; @@ -203,8 +203,8 @@ void TabWidget::handleScreenChanged() { _butW = g_gui.evaluator()->getVar("TabWidget.navButtonW", 10); _butH = g_gui.evaluator()->getVar("TabWidget.navButtonH", 10); - int x = _w - _butRP - _butW * 2 - 2 - _boss->getChildX(); - int y = _butTP - _boss->getChildY() - _tabHeight; + int x = _w - _butRP - _butW * 2 - 2; + int y = _butTP - _tabHeight; _navLeft->resize(x, y, _butW, _butH); _navRight->resize(x + _butW + 2, y, _butW, _butH); |