X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b01abb82d79983cdc0e94f46e8f2ea99705aab2..18d5c52d673948d33e7bfbaab7f9ef1e1610d10e:/src/stc/PlatWX.cpp?ds=sidebyside diff --git a/src/stc/PlatWX.cpp b/src/stc/PlatWX.cpp index 661b5207fe..9e69d2fcd5 100644 --- a/src/stc/PlatWX.cpp +++ b/src/stc/PlatWX.cpp @@ -828,7 +828,8 @@ public: #ifdef __WXMSW__ lv->Show(); #endif -#ifdef __WXOSX_COCOA__ +#if defined(__WXOSX_COCOA__) || defined(__WXGTK__) + // This color will end up being our border SetBackgroundColour(wxColour(0xC0, 0xC0, 0xC0)); #endif } @@ -893,7 +894,7 @@ public: x = y = 0; w = sz.x; h = sz.y; -#ifdef __WXOSX_COCOA__ +#if defined(__WXOSX_COCOA__) || defined(__WXGTK__) // make room for the parent's bg color to show, to act as a border x = y = 1; w -= 2; @@ -1322,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) { +#ifdef wxHAS_RAW_BITMAP wxBitmap bmp = BitmapFromRGBAImage(width, height, pixelsImage); RegisterImageHelper(type, bmp); +#endif }