X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cb129171c2653ca2202849e609cc41a6ddd0a9cb..f6753003f1851b52c7778e2a12a747d6265f47d9:/src/stc/PlatWX.cpp diff --git a/src/stc/PlatWX.cpp b/src/stc/PlatWX.cpp index 79bb27b801..821e7392d4 100644 --- a/src/stc/PlatWX.cpp +++ b/src/stc/PlatWX.cpp @@ -32,7 +32,9 @@ #include "wx/imaglist.h" #include "wx/tokenzr.h" +#ifdef wxHAVE_RAW_BITMAP #include "wx/rawbmp.h" +#endif #include "Platform.h" #include "PlatWX.h" @@ -366,6 +368,7 @@ void SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize, ColourAllocated fill, int alphaFill, ColourAllocated outline, int alphaOutline, int /*flags*/) { +#ifdef wxHAVE_RAW_BITMAP // TODO: do something with cornerSize wxUnusedVar(cornerSize); @@ -426,6 +429,13 @@ void SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize, // Draw the bitmap hdc->DrawBitmap(bmp, r.x, r.y, true); + +#else + wxUnusedVar(cornerSize); + wxUnusedVar(alphaFill); + wxUnusedVar(alphaOutline); + RectangleDraw(rc, outline, fill); +#endif } void SurfaceImpl::Ellipse(PRectangle rc, ColourAllocated fore, ColourAllocated back) {