diff options
author | Martin Kiewitz | 2014-06-02 01:37:08 +0200 |
---|---|---|
committer | Martin Kiewitz | 2014-06-02 01:37:08 +0200 |
commit | c1e895d7992bd5937604eb8d64cdc1c1611a11bd (patch) | |
tree | d900774c977c23b1af388720f9a74896eaca47ee /engines/sci | |
parent | 8c7dc6c142a67a8a9287ba31dbfe85f220176502 (diff) | |
download | scummvm-rg350-c1e895d7992bd5937604eb8d64cdc1c1611a11bd.tar.gz scummvm-rg350-c1e895d7992bd5937604eb8d64cdc1c1611a11bd.tar.bz2 scummvm-rg350-c1e895d7992bd5937604eb8d64cdc1c1611a11bd.zip |
SCI: fix regression introduced by 480x300 commit
fix EGA graphic corruption
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/graphics/screen.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/sci/graphics/screen.cpp b/engines/sci/graphics/screen.cpp index 6b1cab95c6..806881cc2a 100644 --- a/engines/sci/graphics/screen.cpp +++ b/engines/sci/graphics/screen.cpp @@ -624,7 +624,6 @@ void GfxScreen::dither(bool addToFlag) { switch (_upscaledHires) { case GFX_SCREEN_UPSCALED_DISABLED: *displayPtr = color; - displayPtr++; break; default: putScaledPixelOnDisplay(x, y, color); @@ -632,7 +631,7 @@ void GfxScreen::dither(bool addToFlag) { } *visualPtr = color; } - visualPtr++; + visualPtr++; displayPtr++; } } } else { @@ -656,7 +655,6 @@ void GfxScreen::dither(bool addToFlag) { switch (_upscaledHires) { case GFX_SCREEN_UPSCALED_DISABLED: *displayPtr = ditheredColor; - displayPtr++; break; default: putScaledPixelOnDisplay(x, y, ditheredColor); @@ -665,7 +663,7 @@ void GfxScreen::dither(bool addToFlag) { color = ((x^y) & 1) ? color >> 4 : color & 0x0F; *visualPtr = color; } - visualPtr++; + visualPtr++; displayPtr++; } } } |