]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/stattext.cpp
made sure the alignment for the non-carbon fake list def resource is always 68k
[wxWidgets.git] / src / mac / stattext.cpp
index e977973b73ec30c1fc5062d29cb5a40df0207f18..3b2476af406b8b0f775308e21f4f7cbe8f16ea58 100644 (file)
@@ -20,6 +20,7 @@
 #include "wx/dc.h"
 #include "wx/dcclient.h"
 #include "wx/utils.h"
+#include "wx/settings.h"
 
 #include <stdio.h>
 
@@ -128,7 +129,7 @@ void wxStaticText::OnDraw( wxDC &dc )
     if (m_width <= 0 || m_height <= 0)
         return;
 
-  if ( !IsWindowHilited( MacGetRootWindow() ) && 
+  if ( !IsWindowHilited( (WindowRef) MacGetRootWindow() ) && 
     ( GetBackgroundColour() == wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE ) 
       || GetBackgroundColour() == wxSystemSettings::GetSystemColour(wxSYS_COLOUR_APPWORKSPACE) ) )
   {