need to invert offsets for gdk_pixbuf_scale
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -321,7 +321,7 @@ wxBitmap wxBitmap::Rescale(int clipx, int clipy, int clipwidth, int clipheight,
|
||||
8, width, height), M_BMPDATA->m_bpp);
|
||||
gdk_pixbuf_scale(M_BMPDATA->m_pixbuf, bmp.GetPixbuf(),
|
||||
0, 0, width, height,
|
||||
clipx, clipy,
|
||||
-clipx, -clipy,
|
||||
(double)newx/GetWidth(), (double)newy/GetHeight(),
|
||||
GDK_INTERP_BILINEAR);
|
||||
}
|
||||
|
Reference in New Issue
Block a user