[Scummvm-cvs-logs] SF.net SVN: scummvm:[42834] scummvm/branches/gsoc2009-draci/engines/draci/ font.cpp

dkasak13 at users.sourceforge.net dkasak13 at users.sourceforge.net
Mon Jul 27 05:57:43 CEST 2009


Revision: 42834
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42834&view=rev
Author:   dkasak13
Date:     2009-07-27 03:57:43 +0000 (Mon, 27 Jul 2009)

Log Message:
-----------
* Removed unused variable
* Fixed unsigned to signed comparison warning

Modified Paths:
--------------
    scummvm/branches/gsoc2009-draci/engines/draci/font.cpp

Modified: scummvm/branches/gsoc2009-draci/engines/draci/font.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/font.cpp	2009-07-27 03:11:58 UTC (rev 42833)
+++ scummvm/branches/gsoc2009-draci/engines/draci/font.cpp	2009-07-27 03:57:43 UTC (rev 42834)
@@ -29,7 +29,7 @@
 #include "draci/font.h"
 
 namespace Draci {
-de
+
 const Common::String kFontSmall("Small.fon");
 const Common::String kFontBig("Big.fon"); 
 
@@ -259,14 +259,11 @@
  */
 
 int Font::getStringWidth(const Common::String &str, int spacing) const {
-	int width = 0;	
+	unsigned int width = 0;	
 
 	// Real length, including '|' separators
 	uint len = str.size();
 
-	// Here we will store the in-game length of the longest line
-	uint lineLength = 0;
-
 	for (unsigned int i = 0, tmp = 0; i < len; ++i) {
 
 		// Newline char encountered, skip it and store the new length if it is greater


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