]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/renderer.cpp
fixed border calculation
[wxWidgets.git] / src / mac / carbon / renderer.cpp
index e93325ca69144a9e827a5f3e2cfdc8d51e8aaa48..571c40c75d65abb040d775d119baba3de2ff1dde 100644 (file)
@@ -32,6 +32,8 @@
 #endif //WX_PRECOMP
 
 #include "wx/renderer.h"
+#include "wx/toplevel.h"
+#include "wx/dcclient.h"
 #include "wx/mac/uma.h"
 
 // ----------------------------------------------------------------------------
@@ -259,8 +261,8 @@ wxRendererMac::DrawSplitterSash(wxWindow *win,
 
         if ( dc.IsKindOf( CLASSINFO( wxPaintDC ) ) == false )
         {
-            Rect r = { splitterRect.origin.y , splitterRect.origin.x , 
-                splitterRect.origin.y + splitterRect.size.height , splitterRect.origin.x + splitterRect.size.width } ;
+            Rect r = { (short) splitterRect.origin.y , (short) splitterRect.origin.x , 
+                (short) (splitterRect.origin.y + splitterRect.size.height) , (short) (splitterRect.origin.x + splitterRect.size.width) } ;
             RgnHandle updateRgn = NewRgn() ;
             RectRgn( updateRgn , &r ) ;
             HIViewSetNeedsDisplayInRegion( (HIViewRef) win->GetHandle() , updateRgn , true ) ;