From 4d1ebc86643846bbfb7d5e5a5e4c3d10504b61f7 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Fri, 11 Aug 2006 17:34:54 +0000 Subject: [PATCH] change deprecated gdk_image_get to gdk_drawable_get_image git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/bitmap.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gtk/bitmap.cpp b/src/gtk/bitmap.cpp index 7b944d6738..33719df01f 100644 --- a/src/gtk/bitmap.cpp +++ b/src/gtk/bitmap.cpp @@ -343,7 +343,7 @@ wxBitmap wxBitmap::Rescale( int clipx, int clipy, int clipwidth, int clipheight, } else { - GdkImage* img = gdk_image_get(GetPixmap(), 0, 0, GetWidth(), GetHeight()); + GdkImage* img = gdk_drawable_get_image(GetPixmap(), 0, 0, GetWidth(), GetHeight()); wxCHECK_MSG(img, bmp, wxT("couldn't create image")); @@ -443,7 +443,7 @@ wxBitmap wxBitmap::Rescale( int clipx, int clipy, int clipwidth, int clipheight, { dstbyteperline = (width + 7) / 8; dst = (char*) malloc(dstbyteperline*height); - img = gdk_image_get( GetMask()->GetBitmap(), 0, 0, GetWidth(), GetHeight() ); + img = gdk_drawable_get_image(GetMask()->GetBitmap(), 0, 0, GetWidth(), GetHeight()); for (int h = 0; h < height; h++) { @@ -767,7 +767,7 @@ wxImage wxBitmap::ConvertToImage() const if (HasPixmap()) { - gdk_image = gdk_image_get( GetPixmap(), + gdk_image = gdk_drawable_get_image( GetPixmap(), 0, 0, GetWidth(), GetHeight() ); } @@ -781,7 +781,7 @@ wxImage wxBitmap::ConvertToImage() const GdkImage *gdk_image_mask = (GdkImage*) NULL; if (GetMask()) { - gdk_image_mask = gdk_image_get( GetMask()->GetBitmap(), + gdk_image_mask = gdk_drawable_get_image( GetMask()->GetBitmap(), 0, 0, GetWidth(), GetHeight() ); -- 2.45.2