aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorD G Turner2017-02-01 01:17:53 +0000
committerD G Turner2017-02-01 01:17:53 +0000
commit32667eeaa9ae781846e963d18da641af1242ad05 (patch)
tree12713e6a239a0664b78aa36926f37a22d2c9ba98 /graphics
parentcc598112052f00cc06229097fa02f5ee1a029179 (diff)
downloadscummvm-rg350-32667eeaa9ae781846e963d18da641af1242ad05.tar.gz
scummvm-rg350-32667eeaa9ae781846e963d18da641af1242ad05.tar.bz2
scummvm-rg350-32667eeaa9ae781846e963d18da641af1242ad05.zip
GRAPHICS: Fix GCC Compiler Warnings.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/macgui/mactext.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp
index c582c4ec03..8644bb9a97 100644
--- a/graphics/macgui/mactext.cpp
+++ b/graphics/macgui/mactext.cpp
@@ -243,12 +243,12 @@ void MacText::render(int from, int to) {
for (uint j = 0; j < _textLines[i].chunks.size(); j++)
debugN(4, "[%d] \"%s\"", _textLines[i].chunks[j].fontId, _textLines[i].chunks[j].text.c_str());
- debug(4, "");
+ debug(4, "%s", "");
}
}
int MacText::getLineWidth(int line) {
- if (line >= _textLines.size())
+ if ((uint)line >= _textLines.size())
return 0;
if (_textLines[line].width != -1)
@@ -269,7 +269,7 @@ int MacText::getLineWidth(int line) {
}
int MacText::getLineHeight(int line) {
- if (line >= _textLines.size())
+ if ((uint)line >= _textLines.size())
return 0;
getLineWidth(line); // This calculates height also