- wxSOLID
- wxDOT
- wxLONG_DASH
- wxSHORT_DASH
- wxDOT_DASH
- wxUSER_DASH
It's on a Windows system btw. (don't know the Windows version yet, but it's probably Windows XP).
Has anyone ever seen similar behaviour or has any clue where I could start looking for a solution.
On a side-note, I was wondering whether in the following section of code in pen.cpp (also in the current CVS version) the #ifndef should be replaced by #ifdef:
Code: Select all
#ifndef __WIN32__
// In Windows, only a pen of width = 1 can be dotted or dashed!
if ((Style == wxDOT) || (Style == wxLONG_DASH) ||
(Style == wxSHORT_DASH) || (Style == wxDOT_DASH) ||
(Style == wxUSER_DASH))
M_PENDATA->m_width = 1;
#else
/***
DWORD vers = GetVersion() ;
WORD high = HIWORD(vers) ; // high bit=0 for NT, 1 for Win32s
// Win32s doesn't support wide dashed pens
if ((high&0x8000)!=0)
***/
if (wxGetOsVersion()==wxWIN32S)
{
// In Windows, only a pen of width = 1 can be dotted or dashed!
if ((Style == wxDOT) || (Style == wxLONG_DASH) ||
(Style == wxSHORT_DASH) || (Style == wxDOT_DASH) ||
(Style == wxUSER_DASH))
M_PENDATA->m_width = 1;
}
#endif