fixed tests for dashed/dotted pens under OS != NT (bug 1182319)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-04-13 16:27:05 +00:00
parent 4552892fc2
commit f3ebca94dd

View File

@ -128,11 +128,11 @@ bool wxPen::RealizeResource()
#if !defined(__WXMICROWIN__) && !defined(__WXWINCE__)
// Only NT can display dashed or dotted lines with width > 1
if ( os != wxWINDOWS_NT &&
(M_PENDATA->m_style & (wxDOT |
wxLONG_DASH |
wxSHORT_DASH |
wxDOT_DASH |
wxUSER_DASH)) &&
(M_PENDATA->m_style == wxDOT ||
M_PENDATA->m_style == wxLONG_DASH ||
M_PENDATA->m_style == wxSHORT_DASH ||
M_PENDATA->m_style == wxDOT_DASH ||
M_PENDATA->m_style == wxUSER_DASH) &&
M_PENDATA->m_width > 1 )
{
M_PENDATA->m_width = 1;