]> git.saurik.com Git - wxWidgets.git/commitdiff
WinCE apparently should not have rectangle adjusted if using transparent pen
authorJulian Smart <julian@anthemion.co.uk>
Sat, 2 Apr 2005 23:01:28 +0000 (23:01 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 2 Apr 2005 23:01:28 +0000 (23:01 +0000)
(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

index df9046419a4cecf948aa8e72a295550f34948a12..22e2455e0a6217250d2da69fb63100693f517083 100644 (file)
@@ -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));