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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Mon Sep 15 16:17:56 CEST 2008


Revision: 34560
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34560&view=rev
Author:   thebluegr
Date:     2008-09-15 14:17:51 +0000 (Mon, 15 Sep 2008)

Log Message:
-----------
Remove a workaround in textFitsCentered(). The blind man's dialog is a bit better placed now

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

Modified: scummvm/trunk/engines/drascula/graphics.cpp
===================================================================
--- scummvm/trunk/engines/drascula/graphics.cpp	2008-09-15 13:45:10 UTC (rev 34559)
+++ scummvm/trunk/engines/drascula/graphics.cpp	2008-09-15 14:17:51 UTC (rev 34560)
@@ -304,9 +304,7 @@
 bool DrasculaEngine::textFitsCentered(char *text, int x) {
 	int len = strlen(text);
 	int x1 = CLIP<int>(x - len * CHAR_WIDTH / 2, 60, 255);
-	// Print up to pixel 280, not 320, to have 40 pixels space to the right
-	// This resembles the way that the original printed text on screen
-	return (x1 + len * CHAR_WIDTH) <= 280;
+	return (x1 + len * CHAR_WIDTH) <= 320;
 }
 
 void DrasculaEngine::centerText(const char *message, int textX, int textY) {


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