aboutsummaryrefslogtreecommitdiff
path: root/engines/draci
diff options
context:
space:
mode:
authorDenis Kasak2009-07-27 03:57:43 +0000
committerDenis Kasak2009-07-27 03:57:43 +0000
commitddf8f1cbb539e60eada6dfeaea560498ac89e3bc (patch)
treea668bf82438ac009b7ab8933c41f37554e4603d3 /engines/draci
parentb14828c4ce1a12163bb898d02595ea24c3dfc50a (diff)
downloadscummvm-rg350-ddf8f1cbb539e60eada6dfeaea560498ac89e3bc.tar.gz
scummvm-rg350-ddf8f1cbb539e60eada6dfeaea560498ac89e3bc.tar.bz2
scummvm-rg350-ddf8f1cbb539e60eada6dfeaea560498ac89e3bc.zip
* Removed unused variable
* Fixed unsigned to signed comparison warning svn-id: r42834
Diffstat (limited to 'engines/draci')
-rw-r--r--engines/draci/font.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/draci/font.cpp b/engines/draci/font.cpp
index 66fbda30b7..2a6e5989f0 100644
--- a/engines/draci/font.cpp
+++ b/engines/draci/font.cpp
@@ -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 @@ void Font::drawString(Surface *dst, const Common::String &str,
*/
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