X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bea74fbbebd7d859d94c803c1e0de3c8751a434b..9e855852c1bc24ddd49b69df5290111022a96093:/src/common/image.cpp diff --git a/src/common/image.cpp b/src/common/image.cpp index 714750f706..b5c526628e 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -150,7 +150,7 @@ void wxImage::Destroy() UnRef(); } -wxImage wxImage::Scale( int width, int height ) +wxImage wxImage::Scale( int width, int height ) const { wxImage image; @@ -944,7 +944,7 @@ wxBitmap wxImage::ConvertToBitmap() const // Retrieve depth GdkVisual *visual = gdk_window_get_visual( bitmap.GetPixmap() ); - if (visual == NULL) visual = gdk_window_get_visual( (GdkWindow*) &gdk_root_parent ); + if (visual == NULL) visual = gdk_visual_get_system(); int bpp = visual->depth; bitmap.SetDepth( bpp );