aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/prince.cpp
diff options
context:
space:
mode:
authorKamil Zbróg2013-11-04 16:07:19 +0000
committerKamil Zbróg2013-11-04 16:07:19 +0000
commit4b2a7606299acd1e16eff45a9deea2c14b04cafd (patch)
tree3a10eb82284744e5a92df98476eade3c8f80c6c7 /engines/prince/prince.cpp
parent9dc35033f523c9c694f24e15ed45ba6194786a25 (diff)
downloadscummvm-rg350-4b2a7606299acd1e16eff45a9deea2c14b04cafd.tar.gz
scummvm-rg350-4b2a7606299acd1e16eff45a9deea2c14b04cafd.tar.bz2
scummvm-rg350-4b2a7606299acd1e16eff45a9deea2c14b04cafd.zip
PRICE: compilation warnings fixed
Diffstat (limited to 'engines/prince/prince.cpp')
-rw-r--r--engines/prince/prince.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp
index 2fc4407f6e..aaad8e96ed 100644
--- a/engines/prince/prince.cpp
+++ b/engines/prince/prince.cpp
@@ -407,7 +407,7 @@ void PrinceEngine::hotspot() {
continue;
if (it->_rect.contains(mousePosCamera)) {
uint16 textW = 0;
- for (int i = 0; i < it->_name.size(); ++i)
+ for (uint16 i = 0; i < it->_name.size(); ++i)
textW += _font.getCharWidth(it->_name[i]);
uint16 x = mousepos.x - textW/2;
@@ -459,7 +459,7 @@ void PrinceEngine::showTexts() {
Common::Array<Common::String> lines;
_font.wordWrapText(text._str, _graph->_frontScreen->w, lines);
- for (int i = 0; i < lines.size(); ++i) {
+ for (uint8 i = 0; i < lines.size(); ++i) {
_font.drawString(
_graph->_frontScreen,
lines[i],