[Scummvm-cvs-logs] scummvm master -> 5bf8a0bf846a5d3d0a02b8186de00518ca437c80

dreammaster dreammaster at scummvm.org
Tue May 10 14:58:34 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
5bf8a0bf84 TSAGE: Adjusted scaling process to fix scaling image to a 1x1 pixel in Scene #7600


Commit: 5bf8a0bf846a5d3d0a02b8186de00518ca437c80
    https://github.com/scummvm/scummvm/commit/5bf8a0bf846a5d3d0a02b8186de00518ca437c80
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2011-05-10T05:56:53-07:00

Commit Message:
TSAGE: Adjusted scaling process to fix scaling image to a 1x1 pixel in Scene #7600

Changed paths:
    engines/tsage/graphics.cpp



diff --git a/engines/tsage/graphics.cpp b/engines/tsage/graphics.cpp
index 0a1e1ee..c50da6b 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;






More information about the Scummvm-git-logs mailing list