[Scummvm-cvs-logs] SF.net SVN: scummvm:[34903] scummvm/trunk/graphics/font.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Wed Nov 5 15:47:07 CET 2008
Revision: 34903
http://scummvm.svn.sourceforge.net/scummvm/?rev=34903&view=rev
Author: fingolfin
Date: 2008-11-05 14:47:06 +0000 (Wed, 05 Nov 2008)
Log Message:
-----------
Fixed off-by-one error in horizontal text centering code
Modified Paths:
--------------
scummvm/trunk/graphics/font.cpp
Modified: scummvm/trunk/graphics/font.cpp
===================================================================
--- scummvm/trunk/graphics/font.cpp 2008-11-05 14:33:22 UTC (rev 34902)
+++ scummvm/trunk/graphics/font.cpp 2008-11-05 14:47:06 UTC (rev 34903)
@@ -827,7 +827,7 @@
}
if (align == kTextAlignCenter)
- x = x + (w - width - 1)/2;
+ x = x + (w - width)/2;
else if (align == kTextAlignRight)
x = x + w - width;
x += deltax;
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