From 2317ce6c13c2fa30eb0eb2cf1984fd80f8e45bce Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Wed, 16 May 2007 07:11:11 +0000 Subject: [PATCH] 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 --- src/gtk/bitmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/bitmap.cpp b/src/gtk/bitmap.cpp index 661f9f8503..2c63422815 100644 --- a/src/gtk/bitmap.cpp +++ b/src/gtk/bitmap.cpp @@ -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); }