]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/shaped/shaped.cpp
fixes potential crash under gatekeeper
[wxWidgets.git] / samples / shaped / shaped.cpp
index 9b05903463163b08954b8f1ad95c5afff270f378..614b7d076a6ad026bde9d0412d12872a3bb68fde 100644 (file)
@@ -41,7 +41,7 @@
 #include "wx/graphics.h"
 #include "wx/image.h"
 
 #include "wx/graphics.h"
 #include "wx/image.h"
 
-#ifndef __WXMSW__
+#ifndef wxHAS_IMAGES_IN_RESOURCES
     #include "../sample.xpm"
 #endif
 
     #include "../sample.xpm"
 #endif
 
@@ -490,7 +490,7 @@ SeeThroughFrame::SeeThroughFrame()
                   wxSTAY_ON_TOP),
          m_currentState(STATE_SEETHROUGH)
 {
                   wxSTAY_ON_TOP),
          m_currentState(STATE_SEETHROUGH)
 {
-    SetBackgroundColour(wxColour(255, 255, 255, 255));
+    SetBackgroundColour(*wxWHITE);
     SetBackgroundStyle(wxBG_STYLE_TRANSPARENT);
 }
 
     SetBackgroundStyle(wxBG_STYLE_TRANSPARENT);
 }