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

This commit is contained in:
marco. 2012-01-10 20:52:48 +01:00
parent 0404ddae29
commit 54c20b57f2
1 changed files with 6 additions and 0 deletions

View File

@ -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;