From 5ecd5fcd232bfeb1f303817910d3a9e3044e002c Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Thu, 9 Oct 2003 19:39:33 +0000 Subject: [PATCH] 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 --- src/gtk/bitmap.cpp | 4 ++-- src/gtk1/bitmap.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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++)