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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Wed Jan 27 23:56:01 CET 2010


Revision: 47615
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47615&view=rev
Author:   thebluegr
Date:     2010-01-27 22:56:00 +0000 (Wed, 27 Jan 2010)

Log Message:
-----------
Made the code inside SciGui::display() a bit more readable

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

Modified: scummvm/trunk/engines/sci/graphics/gui.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/gui.cpp	2010-01-27 22:55:30 UTC (rev 47614)
+++ scummvm/trunk/engines/sci/graphics/gui.cpp	2010-01-27 22:56:00 UTC (rev 47615)
@@ -275,7 +275,9 @@
 	_text->Size(rect, text, -1, width);
 	rect.moveTo(_gfx->GetPort()->curLeft, _gfx->GetPort()->curTop);
 	if (getSciVersion() >= SCI_VERSION_1_LATE) {
-		_gfx->Move(rect.right <= _screen->getWidth() ? 0 : _screen->getWidth() - rect.right, rect.bottom <= _screen->getHeight() ? 0 : _screen->getHeight() - rect.bottom);
+		int16 leftPos = rect.right <= _screen->getWidth() ? 0 : _screen->getWidth() - rect.right;
+		int16 topPos = rect.bottom <= _screen->getHeight() ? 0 : _screen->getHeight() - rect.bottom;
+		_gfx->Move(leftPos, topPos);
 		rect.moveTo(_gfx->GetPort()->curLeft, _gfx->GetPort()->curTop);
 	}
 


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