aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/wintermute/graphics/transparent_surface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/graphics/transparent_surface.cpp b/engines/wintermute/graphics/transparent_surface.cpp
index a0d472389f..e20f97b116 100644
--- a/engines/wintermute/graphics/transparent_surface.cpp
+++ b/engines/wintermute/graphics/transparent_surface.cpp
@@ -584,8 +584,8 @@ TransparentSurface *TransparentSurface::scale(uint16 newWidth, uint16 newHeight)
int projY;
for (int y = 0; y < dstH; y++) {
for (int x = 0; x < dstW; x++) {
- projX = x / dstW * srcW;
- projY = y / dstH * srcH;
+ projX = x / (float)dstW * srcW;
+ projY = y / (float)dstH * srcH;
copyPixelNearestNeighbor(projX, projY, x, y, srcRect, dstRect, this, target);
}
}