aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2013-02-02 20:26:42 +0100
committerTorbjörn Andersson2013-02-02 20:26:42 +0100
commit8f300bdc303579e4becc1d8e68bd8774042501b6 (patch)
treea171fc7bf89d88be1e448cfcbfb54db211a0e8ff
parent690405961f73ddbdfc5e07a57f4ca438421856a0 (diff)
downloadscummvm-rg350-8f300bdc303579e4becc1d8e68bd8774042501b6.tar.gz
scummvm-rg350-8f300bdc303579e4becc1d8e68bd8774042501b6.tar.bz2
scummvm-rg350-8f300bdc303579e4becc1d8e68bd8774042501b6.zip
HOPKINS: Fix GCC warnings
-rw-r--r--engines/hopkins/graphics.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/hopkins/graphics.cpp b/engines/hopkins/graphics.cpp
index 810a6bf92d..b5920e37e6 100644
--- a/engines/hopkins/graphics.cpp
+++ b/engines/hopkins/graphics.cpp
@@ -1505,7 +1505,7 @@ void GraphicsManager::Affiche_Perfect(byte *surface, const byte *srcData, int xp
if ((uint16)Red_y < 100) {
Red_x = 0;
int v39 = 0;
- for (int i = _width; i; i--) {
+ for (i = _width; i; i--) {
Red_x = Red + Red_x;
if ((uint16)Red_x < 100) {
if (v39 >= _posXClipped && v39 < clip_x1 && *spritePixelsP)
@@ -1693,9 +1693,9 @@ void GraphicsManager::displayFont(byte *surface, const byte *spriteData, int xp,
byte *destP = surface + xp + _lineNbr2 * yp;
_width = spriteWidth;
- int yCtr = 0;
+ int yCtr;
do {
- int yCtr = spriteHeight;
+ yCtr = spriteHeight;
byte *destLineP = destP;
for (int xCtr = spriteWidth; xCtr; xCtr--) {
byte destByte = *spritePixelsP;