diff options
author | Paul Gilbert | 2011-05-10 22:56:53 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-05-10 22:56:53 +1000 |
commit | 5bf8a0bf846a5d3d0a02b8186de00518ca437c80 (patch) | |
tree | 2def302bd4fc3fcbd4f14ea054b04ea11f4e9ac4 | |
parent | b8d858a00b104b2711c0e08b2260495d31a7f9a4 (diff) | |
download | scummvm-rg350-5bf8a0bf846a5d3d0a02b8186de00518ca437c80.tar.gz scummvm-rg350-5bf8a0bf846a5d3d0a02b8186de00518ca437c80.tar.bz2 scummvm-rg350-5bf8a0bf846a5d3d0a02b8186de00518ca437c80.zip |
TSAGE: Adjusted scaling process to fix scaling image to a 1x1 pixel in Scene #7600
-rw-r--r-- | engines/tsage/graphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tsage/graphics.cpp b/engines/tsage/graphics.cpp index 0a1e1eeaa4..c50da6beef 100644 --- a/engines/tsage/graphics.cpp +++ b/engines/tsage/graphics.cpp @@ -423,11 +423,11 @@ static int *scaleLine(int size, int srcSize) { int *v = new int[size]; Common::set_to(v, &v[size], -1); - int distCtr = 0; + int distCtr = PRECISION_FACTOR / 2; int *destP = v; for (int distIndex = 0; distIndex < srcSize; ++distIndex) { distCtr += scale; - while (distCtr >= PRECISION_FACTOR) { + while (distCtr > PRECISION_FACTOR) { assert(destP < &v[size]); *destP++ = distIndex; distCtr -= PRECISION_FACTOR; |