From 54c20b57f2e023fdb3125b76ac0197064ddcf918 Mon Sep 17 00:00:00 2001 From: "marco." Date: Tue, 10 Jan 2012 20:52:48 +0100 Subject: [PATCH] MacOSX: Main issue catch! wxPen with size 0 draws NOTHING (8 months to spot it) --- common/gr_basic.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/gr_basic.cpp b/common/gr_basic.cpp index 8fd323a501..17808c8667 100644 --- a/common/gr_basic.cpp +++ b/common/gr_basic.cpp @@ -357,6 +357,12 @@ void GRSetColorPen( wxDC* DC, int Color, int width, wxPenStyle style ) if( width < 0 ) width = 0; +#ifdef __WXMAC__ + // Under OSX when wxPen is set to 0, cocoa follows the request drawing nothing + if( width == 0) + width = DC->DeviceToLogicalXRel( 1 ); +#endif + if( s_ForceBlackPen ) { Color = BLACK;