preserve pen in DrawCheckMark() (bug 1581621)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -64,8 +64,9 @@ void wxDCBase::DoDrawCheckMark(wxCoord x1, wxCoord y1,
|
|||||||
wxCoord x2 = x1 + width,
|
wxCoord x2 = x1 + width,
|
||||||
y2 = y1 + height;
|
y2 = y1 + height;
|
||||||
|
|
||||||
// this is to yield width of 3 for width == height == 10
|
// the pen width is calibrated to give 3 for width == height == 10
|
||||||
SetPen(wxPen(GetTextForeground(), (width + height + 1) / 7, wxSOLID));
|
wxDCPenChanger pen((wxDC&)*this,
|
||||||
|
wxPen(GetTextForeground(), (width + height + 1)/7));
|
||||||
|
|
||||||
// we're drawing a scaled version of wx/generic/tick.xpm here
|
// we're drawing a scaled version of wx/generic/tick.xpm here
|
||||||
wxCoord x3 = x1 + (4*width) / 10, // x of the tick bottom
|
wxCoord x3 = x1 + (4*width) / 10, // x of the tick bottom
|
||||||
|
Reference in New Issue
Block a user