mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-22 20:21:06 +00:00
* Removed unused variable
* Fixed unsigned to signed comparison warning svn-id: r42834
This commit is contained in:
parent
b14828c4ce
commit
ddf8f1cbb5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user