]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/window.mm
Fix format string in wxLog::LogLastRepeatIfNeeded().
[wxWidgets.git] / src / osx / cocoa / window.mm
index 378755f89e8c8169c914849e82a2e1998e81c59e..f19ebfb231f52c9a8759d35773c0d5b791c75aed 100644 (file)
@@ -1288,6 +1288,19 @@ void wxWidgetCocoaImpl::drawRect(void* rect, WXWidget slf, void *WXUNUSED(_cmd))
             dc.SetDeviceClippingRegion(clearRgn);
             dc.Clear();
         }
+
+#if wxUSE_GRAPHICS_CONTEXT
+        // If the window shape is defined by a path, stroke the path to show
+        // the window border.
+        const wxGraphicsPath& path = tlwParent->GetShapePath();
+        if ( !path.IsNull() )
+        {
+            CGContextSetLineWidth(context, 1);
+            CGContextSetStrokeColorWithColor(context, wxLIGHT_GREY->GetCGColor());
+            CGContextAddPath(context, (CGPathRef) path.GetNativePath());
+            CGContextStrokePath(context);
+        }
+#endif // wxUSE_GRAPHICS_CONTEXT
     }
 
     wxpeer->MacPaintChildrenBorders();