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

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Tue Sep 16 00:37:52 CEST 2008


Revision: 34567
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34567&view=rev
Author:   fingolfin
Date:     2008-09-15 22:37:45 +0000 (Mon, 15 Sep 2008)

Log Message:
-----------
Fixed compiler warnings

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

Modified: scummvm/trunk/engines/drascula/graphics.cpp
===================================================================
--- scummvm/trunk/engines/drascula/graphics.cpp	2008-09-15 21:55:50 UTC (rev 34566)
+++ scummvm/trunk/engines/drascula/graphics.cpp	2008-09-15 22:37:45 UTC (rev 34567)
@@ -303,8 +303,8 @@
 
 bool DrasculaEngine::textFitsCentered(char *text, int x) {
 	int len = strlen(text);
-	int x1 = CLIP<int>(x - len * CHAR_WIDTH / 2, 60, 255);
-	return (x1 + len * CHAR_WIDTH) <= 320;
+	int tmp = CLIP<int>(x - len * CHAR_WIDTH / 2, 60, 255);
+	return (tmp + len * CHAR_WIDTH) <= 320;
 }
 
 void DrasculaEngine::centerText(const char *message, int textX, int textY) {
@@ -317,7 +317,6 @@
 	int curLine = 0;
 	int x = 0;
 	int y = textY - (3 * CHAR_HEIGHT);	// original starts printing 3 lines above textY
-	int len = 0;
 
 	strcpy(msg, message);
 


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