]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/bitmap.cpp
changed background color reference from light gray to assigned bkgd color
[wxWidgets.git] / src / gtk / bitmap.cpp
index 1ea0526a59267c6762d59ecc962f83d8b697d038..1a4c20bb62f8ae4d207e0db3b9b5c405d545387b 100644 (file)
@@ -1282,7 +1282,7 @@ wxBitmap wxBitmap::GetSubBitmap( const wxRect& rect) const
     {
         GdkPixbuf *pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB,
                                            gdk_pixbuf_get_has_alpha(GetPixbuf()),
-                                           8, GetWidth(), GetHeight());
+                                           8, rect.width, rect.height);
         ret.SetPixbuf(pixbuf);
         gdk_pixbuf_copy_area(GetPixbuf(),
                              rect.x, rect.y, rect.width, rect.height,