[Scummvm-cvs-logs] SF.net SVN: scummvm:[48686] scummvm/trunk/engines/sci/graphics/menu.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Sat Apr 17 15:42:20 CEST 2010


Revision: 48686
          http://scummvm.svn.sourceforge.net/scummvm/?rev=48686&view=rev
Author:   m_kiewitz
Date:     2010-04-17 13:42:19 +0000 (Sat, 17 Apr 2010)

Log Message:
-----------
SCI: move menu window inside the screen, if parts of it are outside (happens in multilingual sq3 and lsl3)

Modified Paths:
--------------
    scummvm/trunk/engines/sci/graphics/menu.cpp

Modified: scummvm/trunk/engines/sci/graphics/menu.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/menu.cpp	2010-04-17 13:34:16 UTC (rev 48685)
+++ scummvm/trunk/engines/sci/graphics/menu.cpp	2010-04-17 13:42:19 UTC (rev 48686)
@@ -540,6 +540,11 @@
 	if (!maxTextRightAlignedWidth)
 		_menuRect.right -= 5;
 
+	// if part of menu window is outside the screen, move it into the screen (this happens in multilingual sq3 and lsl3)
+	if (_menuRect.right > _screen->getWidth()) {
+		_menuRect.translate(-(_menuRect.right - _screen->getWidth()), 0);
+	}
+
 	// Save background
 	_menuSaveHandle = _paint16->bitsSave(_menuRect, SCI_SCREEN_MASK_VISUAL);
 


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