[Scummvm-cvs-logs] SF.net SVN: scummvm: [25665] scummvm/trunk/engines/parallaction/graphics. cpp

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Sat Feb 17 22:19:56 CET 2007


Revision: 25665
          http://scummvm.svn.sourceforge.net/scummvm/?rev=25665&view=rev
Author:   peres001
Date:     2007-02-17 13:19:55 -0800 (Sat, 17 Feb 2007)

Log Message:
-----------
fixed regression bug causing labels not to be aligned properly when near the right border

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/graphics.cpp

Modified: scummvm/trunk/engines/parallaction/graphics.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/graphics.cpp	2007-02-17 20:54:25 UTC (rev 25664)
+++ scummvm/trunk/engines/parallaction/graphics.cpp	2007-02-17 21:19:55 UTC (rev 25665)
@@ -495,7 +495,7 @@
 	if (_di > 190) _di = 190;
 
 	if (label->_cnv._width + _si > SCREEN_WIDTH)
-		_si = SCREEN_WIDTH - _si;
+		_si = SCREEN_WIDTH - label->_cnv._width;
 
 
 	_vm->_graphics->restoreBackground(Graphics::_labelPosition[1]._x, Graphics::_labelPosition[1]._y, label->_cnv._width, label->_cnv._height);


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