[Scummvm-cvs-logs] SF.net SVN: scummvm: [23128] scummvm/trunk/gui/TabWidget.cpp

sev at users.sourceforge.net sev at users.sourceforge.net
Thu Jun 15 14:10:06 CEST 2006


Revision: 23128
Author:   sev
Date:     2006-06-15 05:09:53 -0700 (Thu, 15 Jun 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=23128&view=rev

Log Message:
-----------
Fix bug with tab navigation buttons jumping on resolution change.

Modified Paths:
--------------
    scummvm/trunk/gui/TabWidget.cpp
Modified: scummvm/trunk/gui/TabWidget.cpp
===================================================================
--- scummvm/trunk/gui/TabWidget.cpp	2006-06-15 12:04:44 UTC (rev 23127)
+++ scummvm/trunk/gui/TabWidget.cpp	2006-06-15 12:09:53 UTC (rev 23128)
@@ -49,7 +49,7 @@
 	_tabPadding = g_gui.theme()->getTabPadding();
 
 	_flags = WIDGET_ENABLED;
-	_type = kTabWidget;
+ 	_type = kTabWidget;
 	_activeTab = -1;
 	_firstVisibleTab = 0;
 
@@ -203,8 +203,8 @@
 	_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);
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list