X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f5590243955d800aaeee4e2c3b8c4aec14919181..f415cab9ef1433413a1a68a982ee9b17c5a8deda:/src/msw/pen.cpp diff --git a/src/msw/pen.cpp b/src/msw/pen.cpp index 745caf55b0..92b08327a6 100644 --- a/src/msw/pen.cpp +++ b/src/msw/pen.cpp @@ -123,7 +123,7 @@ bool wxPen::RealizeResource() // Join style, Cap style, Pen Stippling #if !defined(__WXMICROWIN__) && !defined(__WXWINCE__) // Only NT can display dashed or dotted lines with width > 1 - if ( os != wxWINDOWS_NT && + if ( os != wxOS_WINDOWS_NT && (M_PENDATA->m_style == wxDOT || M_PENDATA->m_style == wxLONG_DASH || M_PENDATA->m_style == wxSHORT_DASH || @@ -225,25 +225,14 @@ bool wxPen::RealizeResource() real_dash = (wxMSWDash*)NULL; } - // Win32s doesn't have ExtCreatePen function... - if (os==wxWINDOWS_NT || os==wxWIN95) - { - M_PENDATA->m_hPen = - (WXHPEN) ExtCreatePen( ms_style, - M_PENDATA->m_width, - &logb, - M_PENDATA->m_style == wxUSER_DASH - ? M_PENDATA->m_nbDash - : 0, - (LPDWORD)real_dash ); - } - else - { - M_PENDATA->m_hPen = - (WXHPEN) CreatePen( wx2msPenStyle(M_PENDATA->m_style), - M_PENDATA->m_width, - ms_colour ); - } + M_PENDATA->m_hPen = + (WXHPEN) ExtCreatePen( ms_style, + M_PENDATA->m_width, + &logb, + M_PENDATA->m_style == wxUSER_DASH + ? M_PENDATA->m_nbDash + : 0, + (LPDWORD)real_dash ); delete [] real_dash; } @@ -389,8 +378,7 @@ int wx2msPenStyle(int wx_style) return PS_NULL; case wxUSER_DASH: - // if (wxGetOsVersion()==wxWINDOWS_NT || wxGetOsVersion()==wxWIN95) - return PS_USERSTYLE; + return PS_USERSTYLE; } #else wxUnusedVar(wx_style);