WINTERMUTE: Fix operator precedence in scale()

This commit is contained in:
Tobia Tesan 2013-07-10 12:53:05 +02:00
parent 6f03fbac84
commit 5a9e917a60

View File

@ -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);
}
}