diff options
author | Paul Gilbert | 2012-10-28 10:43:08 +1100 |
---|---|---|
committer | Paul Gilbert | 2012-10-28 10:43:08 +1100 |
commit | 68495604f2241e941a1be5637bca30f4855708df (patch) | |
tree | ccf9a631e69924c4fedbbc5ae056cc7f16c681a2 /engines/hopkins | |
parent | ec0a33b9493e88a759870c9c998b1e32660dcfbb (diff) | |
download | scummvm-rg350-68495604f2241e941a1be5637bca30f4855708df.tar.gz scummvm-rg350-68495604f2241e941a1be5637bca30f4855708df.tar.bz2 scummvm-rg350-68495604f2241e941a1be5637bca30f4855708df.zip |
HOPKINS: Fixed Reduc_Ecran method
Diffstat (limited to 'engines/hopkins')
-rw-r--r-- | engines/hopkins/graphics.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/hopkins/graphics.cpp b/engines/hopkins/graphics.cpp index d603c63546..f9505d0372 100644 --- a/engines/hopkins/graphics.cpp +++ b/engines/hopkins/graphics.cpp @@ -2485,7 +2485,7 @@ void GraphicsManager::Reduc_Ecran(const byte *srcSurface, byte *destSurface, int Reduc_Ecran_L = Asm_Reduc(width, Red); Reduc_Ecran_H = Asm_Reduc(height, Red); - for (int yCtr = 0; yCtr < Reduc_Ecran_H; ++yCtr, Red_y -= 100, srcP += nbrligne2) { + for (int yCtr = 0; yCtr < height; ++yCtr, srcP += nbrligne2) { Red_y += Red; if (Red_y < 100) { Red_x = 0; @@ -2500,6 +2500,8 @@ void GraphicsManager::Reduc_Ecran(const byte *srcSurface, byte *destSurface, int ++lineSrcP; } } + } else { + Red_y -= 100; } } } |