fix resize rounding

This commit is contained in:
Glenn Maynard
2004-10-03 18:05:06 +00:00
parent ab064cd6db
commit c63ed003c6
+1 -1
View File
@@ -119,7 +119,7 @@ static void ZoomSurface( const RageSurface * src, RageSurface * dst )
x1 = c10[c] * ex0[x];
x1 += c11[c] * (1-ex0[x]);
const float res = (x0 * ey0[y]) + (x1 * (1-ey0[y]));
const float res = (x0 * ey0[y]) + (x1 * (1-ey0[y])) + 0.5f;
color[c] = uint8_t(res);
}
*dp = *(uint32_t *) color;