Commit 54c20b57 authored by marco.'s avatar marco.

MacOSX: Main issue catch! wxPen with size 0 draws NOTHING (8 months to spot it)

parent 0404ddae
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment