mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-01 15:09:47 +00:00
WINTERMUTE: Fix operator precedence in scale()
This commit is contained in:
parent
6f03fbac84
commit
5a9e917a60
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user