diff --git a/src/gtk/bitmap.cpp b/src/gtk/bitmap.cpp index e8e1948d3d..b36c4d42ff 100644 --- a/src/gtk/bitmap.cpp +++ b/src/gtk/bitmap.cpp @@ -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++) diff --git a/src/gtk1/bitmap.cpp b/src/gtk1/bitmap.cpp index e8e1948d3d..b36c4d42ff 100644 --- a/src/gtk1/bitmap.cpp +++ b/src/gtk1/bitmap.cpp @@ -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++)