]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for case that wxHAS_RAW_BITMAP is NOT defined
authorJouk Jansen <joukj@hrem.nano.tudelft.nl>
Tue, 28 Aug 2012 05:57:14 +0000 (05:57 +0000)
committerJouk Jansen <joukj@hrem.nano.tudelft.nl>
Tue, 28 Aug 2012 05:57:14 +0000 (05:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/stc/PlatWX.cpp

index f1f180a76292b2b7c5c45381be44a9abf36f3d19..9e69d2fcd587213f886d86527b709c0997a37d55 100644 (file)
@@ -1323,8 +1323,10 @@ void ListBoxImpl::RegisterImage(int type, const char *xpm_data) {
 void ListBoxImpl::RegisterRGBAImage(int type, int width, int height,
                                     const unsigned char *pixelsImage)
 {
 void ListBoxImpl::RegisterRGBAImage(int type, int width, int height,
                                     const unsigned char *pixelsImage)
 {
+#ifdef wxHAS_RAW_BITMAP
     wxBitmap bmp = BitmapFromRGBAImage(width, height, pixelsImage);
     RegisterImageHelper(type, bmp);
     wxBitmap bmp = BitmapFromRGBAImage(width, height, pixelsImage);
     RegisterImageHelper(type, bmp);
+#endif
 }
 
 
 }