Removed superfluous parenthesis.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28082 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2008-10-14 13:19:15 +00:00
parent d3cfdf5740
commit 47ddcdba73

View File

@ -1787,7 +1787,7 @@ Painter::_DrawBitmapBilinearCopy32(agg::rendering_buffer& srcBuffer,
// to access the rightmost pixel of the source with a weighting
// of 255. This in turn will trigger an optimization in the loop
// that also prevents out of bounds access.
float index = i * (srcWidth - 1) / ((srcWidth * xScale) - 1);
float index = i * (srcWidth - 1) / (srcWidth * xScale - 1);
// round down to get the left pixel
xWeights[i].index = (uint16)index;
xWeights[i].weight = 255 - (uint16)((index - xWeights[i].index) * 255);
@ -1805,7 +1805,7 @@ Painter::_DrawBitmapBilinearCopy32(agg::rendering_buffer& srcBuffer,
// to access the bottommost pixel of the source with a weighting
// of 255. This in turn will trigger an optimization in the loop
// that also prevents out of bounds access.
float index = i * (srcHeight - 1) / ((srcHeight * yScale) - 1);
float index = i * (srcHeight - 1) / (srcHeight * yScale - 1);
// round down to get the top pixel
yWeights[i].index = (uint16)index;
yWeights[i].weight = 255 - (uint16)((index - yWeights[i].index) * 255);