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:
Robert Roebling
2003-10-09 19:39:33 +00:00
parent 5e4e624b51
commit 5ecd5fcd23
2 changed files with 4 additions and 4 deletions

View File

@@ -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++)

View File

@@ -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++)