WinCE apparently should not have rectangle adjusted if using transparent pen
(droppings left on Life! canvas when drawing with a transparent pen) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -908,8 +908,11 @@ void wxDC::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
|
|||||||
// I wonder if this shouldn<64>t be done after the LOG2DEV() conversions. RR.
|
// I wonder if this shouldn<64>t be done after the LOG2DEV() conversions. RR.
|
||||||
if ( m_pen.GetStyle() == wxTRANSPARENT )
|
if ( m_pen.GetStyle() == wxTRANSPARENT )
|
||||||
{
|
{
|
||||||
|
// Apparently not needed for WinCE (see e.g. Life! demo)
|
||||||
|
#ifndef __WXWINCE__
|
||||||
x2++;
|
x2++;
|
||||||
y2++;
|
y2++;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
(void)Rectangle(GetHdc(), XLOG2DEV(x), YLOG2DEV(y), XLOG2DEV(x2), YLOG2DEV(y2));
|
(void)Rectangle(GetHdc(), XLOG2DEV(x), YLOG2DEV(y), XLOG2DEV(x2), YLOG2DEV(y2));
|
||||||
|
Reference in New Issue
Block a user