remove unneccessary and incorrect optimization
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46059
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxCHECK_MSG(Ok(), bmp, wxT("invalid bitmap"));
wxCHECK_MSG(Ok(), bmp, wxT("invalid bitmap"));
- if (newx==M_BMPDATA->m_width && newy==M_BMPDATA->m_height)
- return *this;
-
int width = wxMax(newx, 1);
int height = wxMax(newy, 1);
width = wxMin(width, clipwidth);
int width = wxMax(newx, 1);
int height = wxMax(newy, 1);
width = wxMin(width, clipwidth);
// images, but the only one which preserves sharp edges
gdk_pixbuf_scale(
pixbuf, pixbuf_scaled,
// images, but the only one which preserves sharp edges
gdk_pixbuf_scale(
pixbuf, pixbuf_scaled,
- 0, 0, width, height, clipx, clipy, scale_x, scale_y,
+ 0, 0, width, height, -clipx, -clipy, scale_x, scale_y,
GDK_INTERP_NEAREST);
g_object_unref(pixbuf);
GDK_INTERP_NEAREST);
g_object_unref(pixbuf);
gdk_pixbuf_scale(
pixbuf, pixbuf_scaled,
gdk_pixbuf_scale(
pixbuf, pixbuf_scaled,
- 0, 0, width, height, clipx, clipy, scale_x, scale_y,
+ 0, 0, width, height, -clipx, -clipy, scale_x, scale_y,
GDK_INTERP_NEAREST);
g_object_unref(pixbuf);
GDK_INTERP_NEAREST);
g_object_unref(pixbuf);