aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
authorFilippos Karapetis2011-10-14 20:28:39 +0300
committerFilippos Karapetis2011-10-14 20:30:22 +0300
commit8609e22e404c06c20c6726ee38425fa4436b6c11 (patch)
tree031fd324103633aa2acae11b2e1fca7a624e0372 /engines/sci/graphics
parent49b4298f7d0a70cc1975fc288cb35b2ea05ae426 (diff)
downloadscummvm-rg350-8609e22e404c06c20c6726ee38425fa4436b6c11.tar.gz
scummvm-rg350-8609e22e404c06c20c6726ee38425fa4436b6c11.tar.bz2
scummvm-rg350-8609e22e404c06c20c6726ee38425fa4436b6c11.zip
SCI: Silenced warnings
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r--engines/sci/graphics/text32.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/graphics/text32.cpp b/engines/sci/graphics/text32.cpp
index 0d4f8deb35..606a9359ac 100644
--- a/engines/sci/graphics/text32.cpp
+++ b/engines/sci/graphics/text32.cpp
@@ -133,11 +133,11 @@ void GfxText32::drawTextBitmap(reg_t textObject) {
textY = textY * _screen->getDisplayHeight() / _screen->getHeight();
}
- for (int y = 0; y < height; y++) {
- for (int x = 0; x < width; x++) {
+ for (int curY = 0; curY < height; curY++) {
+ for (int curX = 0; curX < width; curX++) {
byte pixel = surface[curByte++];
if (pixel)
- _screen->putFontPixel(textY, x + textX, y, pixel);
+ _screen->putFontPixel(textY, curX + textX, curY, pixel);
}
}
}