fix the size of the created subbitmap

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-10-01 15:27:30 +00:00
parent 0ee4059da2
commit 17f504ec9d
2 changed files with 2 additions and 2 deletions

View File

@@ -1282,7 +1282,7 @@ wxBitmap wxBitmap::GetSubBitmap( const wxRect& rect) const
{ {
GdkPixbuf *pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, GdkPixbuf *pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB,
gdk_pixbuf_get_has_alpha(GetPixbuf()), gdk_pixbuf_get_has_alpha(GetPixbuf()),
8, GetWidth(), GetHeight()); 8, rect.width, rect.height);
ret.SetPixbuf(pixbuf); ret.SetPixbuf(pixbuf);
gdk_pixbuf_copy_area(GetPixbuf(), gdk_pixbuf_copy_area(GetPixbuf(),
rect.x, rect.y, rect.width, rect.height, rect.x, rect.y, rect.width, rect.height,

View File

@@ -1282,7 +1282,7 @@ wxBitmap wxBitmap::GetSubBitmap( const wxRect& rect) const
{ {
GdkPixbuf *pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, GdkPixbuf *pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB,
gdk_pixbuf_get_has_alpha(GetPixbuf()), gdk_pixbuf_get_has_alpha(GetPixbuf()),
8, GetWidth(), GetHeight()); 8, rect.width, rect.height);
ret.SetPixbuf(pixbuf); ret.SetPixbuf(pixbuf);
gdk_pixbuf_copy_area(GetPixbuf(), gdk_pixbuf_copy_area(GetPixbuf(),
rect.x, rect.y, rect.width, rect.height, rect.x, rect.y, rect.width, rect.height,