diff options
author | Tobia Tesan | 2013-07-10 12:53:05 +0200 |
---|---|---|
committer | Tobia Tesan | 2013-08-01 00:06:38 +0200 |
commit | 5a9e917a600eb47dd420f5efd2d52005b68a151c (patch) | |
tree | f6c30c6a24ae1889240756ed61970b025ab59840 /engines/wintermute/graphics/transparent_surface.cpp | |
parent | 6f03fbac843410f457115bd075a6926ed3924ce0 (diff) | |
download | scummvm-rg350-5a9e917a600eb47dd420f5efd2d52005b68a151c.tar.gz scummvm-rg350-5a9e917a600eb47dd420f5efd2d52005b68a151c.tar.bz2 scummvm-rg350-5a9e917a600eb47dd420f5efd2d52005b68a151c.zip |
WINTERMUTE: Fix operator precedence in scale()
Diffstat (limited to 'engines/wintermute/graphics/transparent_surface.cpp')
-rw-r--r-- | engines/wintermute/graphics/transparent_surface.cpp | 4 |
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); } } |