Small bug in 1-bit bitmap scaling.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@24139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1042,9 +1042,9 @@ wxBitmap wxBitmap::Rescale( int clipx, int clipy, int clipwidth, int clipheight,
|
||||
|
||||
// accel table filled with clipped values
|
||||
for (int x = 0; x < width; x++)
|
||||
tablex[x] = (int) floor(0.5 + scx * (x+clipx));
|
||||
tablex[x] = (int) (scx * (x+clipx));
|
||||
for (int y = 0; y < height; y++)
|
||||
tabley[y] = (int) floor(0.5 + scy * (y+clipy));
|
||||
tabley[y] = (int) (scy * (y+clipy));
|
||||
|
||||
// Main rescaling routine starts here
|
||||
for (int h = 0; h < height; h++)
|
||||
|
@@ -1042,9 +1042,9 @@ wxBitmap wxBitmap::Rescale( int clipx, int clipy, int clipwidth, int clipheight,
|
||||
|
||||
// accel table filled with clipped values
|
||||
for (int x = 0; x < width; x++)
|
||||
tablex[x] = (int) floor(0.5 + scx * (x+clipx));
|
||||
tablex[x] = (int) (scx * (x+clipx));
|
||||
for (int y = 0; y < height; y++)
|
||||
tabley[y] = (int) floor(0.5 + scy * (y+clipy));
|
||||
tabley[y] = (int) (scy * (y+clipy));
|
||||
|
||||
// Main rescaling routine starts here
|
||||
for (int h = 0; h < height; h++)
|
||||
|
Reference in New Issue
Block a user