summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-01-01 21:02:01 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-01-01 21:05:15 +0900
commit5fa404d1b5da93c9baf8e89a94ddd63d76ae6b9d (patch)
tree839a5d97c5ceea4e4cb15e342e2240f52bd4e4f9
parent53733528be84a83428cda600d8696f30b59e7801 (diff)
fdo#82870 scale "super" quality degradation bug
Change-Id: I132c046323e1c7805fc7ead6f247732c1843eb24
-rw-r--r--vcl/source/bitmap/bitmapscalesuper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/bitmap/bitmapscalesuper.cxx b/vcl/source/bitmap/bitmapscalesuper.cxx
index 29819c92018b..196123a2ac69 100644
--- a/vcl/source/bitmap/bitmapscalesuper.cxx
+++ b/vcl/source/bitmap/bitmapscalesuper.cxx
@@ -38,7 +38,7 @@ void generateMap(long nW, long nDstW, bool bHMirr, long* pMapIX, long* pMapFX)
if (bHMirr)
fTemp = nTempX - fTemp;
pMapIX[nX] = MinMax((long) fTemp, 0, nTemp);
- pMapFX[nX] = (long) (fTemp - pMapIX[nX]) * 128.0;
+ pMapFX[nX] = (long) ((fTemp - pMapIX[nX]) * 128.0);
}
}