Avoid using invalid parameters for GpiSetAttrs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2f68106fa0
commit
aa2f364e34
@ -193,6 +193,8 @@ bool wxPen::RealizeResource()
|
||||
}
|
||||
m_vLineBundle.lColor = (LONG)vPmColour;
|
||||
m_vLineBundle.usMixMode = FM_OVERPAINT;
|
||||
if (M_PENDATA->m_nWidth < 1)
|
||||
M_PENDATA->m_nWidth = 1;
|
||||
m_vLineBundle.fxWidth = M_PENDATA->m_nWidth;
|
||||
m_vLineBundle.lGeomWidth = M_PENDATA->m_nWidth;
|
||||
m_vLineBundle.usType = uLineType;
|
||||
|
Loading…
Reference in New Issue
Block a user