From 750d64e653a18b75f1a2798133a377143a2ac59e Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sat, 2 Apr 2005 23:01:28 +0000 Subject: [PATCH] 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 --- src/msw/dc.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp index df9046419a..22e2455e0a 100644 --- a/src/msw/dc.cpp +++ b/src/msw/dc.cpp @@ -908,8 +908,11 @@ void wxDC::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height) // I wonder if this shouldn´t be done after the LOG2DEV() conversions. RR. if ( m_pen.GetStyle() == wxTRANSPARENT ) { + // Apparently not needed for WinCE (see e.g. Life! demo) +#ifndef __WXWINCE__ x2++; y2++; +#endif } (void)Rectangle(GetHdc(), XLOG2DEV(x), YLOG2DEV(y), XLOG2DEV(x2), YLOG2DEV(y2)); -- 2.50.0