aboutsummaryrefslogtreecommitdiff
path: root/graphics/scaler
diff options
context:
space:
mode:
authorCeRiAl2011-06-14 22:19:48 +0200
committerCeRiAl2011-06-14 22:43:28 +0200
commitd809756c8dda738843797d70f07aaa31d10509bf (patch)
tree78d80557ec8157ddcecbab246ed31d7b44f16182 /graphics/scaler
parent2ff4380c55d67668e743edd0a17737a0dc17402e (diff)
downloadscummvm-rg350-d809756c8dda738843797d70f07aaa31d10509bf.tar.gz
scummvm-rg350-d809756c8dda738843797d70f07aaa31d10509bf.tar.bz2
scummvm-rg350-d809756c8dda738843797d70f07aaa31d10509bf.zip
SCALERS: Fix Normal1xAspect scaler bug reported in bug #3313709
Diffstat (limited to 'graphics/scaler')
-rw-r--r--graphics/scaler/aspect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/scaler/aspect.cpp b/graphics/scaler/aspect.cpp
index 943395aff3..b12fac418b 100644
--- a/graphics/scaler/aspect.cpp
+++ b/graphics/scaler/aspect.cpp
@@ -201,7 +201,7 @@ int stretch200To240(uint8 *buf, uint32 pitch, int width, int height, int srcX, i
template<typename ColorMask>
void Normal1xAspectTemplate(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height) {
- for (int y = 0; y < height; ++y) {
+ for (int y = 0; y < (height * 6 / 5); ++y) {
#if ASPECT_MODE == kSuperFastAndUglyAspectMode
if ((y % 6) == 5)