]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/PlatWX.cpp
fix for bug #1747890 - close button problem fixed
[wxWidgets.git] / src / stc / PlatWX.cpp
index 111230d8de597fb935f077eb0c3e11487d0b2831..d219e12cb14e7f054d2ffd4c8f105a3ec95ef41d 100644 (file)
     #pragma hdrstop
 #endif
 
+#if wxUSE_STC
 
 #ifndef WX_PRECOMP
+    #include "wx/menu.h"
+    #include "wx/dcmemory.h"
+    #include "wx/settings.h"
 #endif // WX_PRECOMP
 
 #include <ctype.h>
@@ -367,7 +371,6 @@ void SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize,
     wxRect r = wxRectFromPRectangle(rc);
     wxBitmap bmp(r.width, r.height, 32);
     wxAlphaPixelData pixData(bmp);
-    pixData.UseAlpha();
 
     // Set the fill pixels
     ColourDesired cdf(fill.AsLong());
@@ -779,7 +782,7 @@ END_EVENT_TABLE()
 
 
 #if wxUSE_POPUPWIN //-----------------------------------
-#include <wx/popupwin.h>
+#include "wx/popupwin.h"
 
 
 //
@@ -909,6 +912,7 @@ END_EVENT_TABLE()
 
 
 #else // !wxUSE_POPUPWIN -----------------------------------
+#include "wx/frame.h"
 
 // A normal window to place the wxSTCListBox upon, but make it behave as much
 // like a wxPopupWindow as possible
@@ -1568,3 +1572,5 @@ const wxWX2MBbuf wx2stc(const wxString& str)
 }
 
 #endif
+
+#endif // wxUSE_STC