X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/284f2b59db428e6ab05d31ff26b12043b6d42ff3..caa2490c0fb8053b1d416117a9619695d75af9e4:/src/gtk1/bitmap.cpp?ds=inline diff --git a/src/gtk1/bitmap.cpp b/src/gtk1/bitmap.cpp index 289f2653c8..df7af69140 100644 --- a/src/gtk1/bitmap.cpp +++ b/src/gtk1/bitmap.cpp @@ -23,6 +23,7 @@ #include "wx/image.h" #include "wx/dcmemory.h" #include "wx/app.h" +#include "wx/rawbmp.h" #ifdef __WXGTK20__ // need this to get gdk_image_new_bitmap() @@ -1596,6 +1597,23 @@ void wxBitmap::UngetRawData(wxPixelDataBase& data) { } + +bool wxBitmap::HasAlpha() const +{ +#ifdef __WXGTK20__ + return HasPixbuf(); +#else + return false; +#endif +} + +void wxBitmap::UseAlpha() +{ +#ifdef __WXGTK20__ + GetPixbuf(); +#endif +} + //----------------------------------------------------------------------------- // wxBitmapHandler //-----------------------------------------------------------------------------