]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dcgraph.cpp
Add wxUSE_TARSTREAM and wxUSE_FS_ARCHIVE.
[wxWidgets.git] / src / common / dcgraph.cpp
index 136775cbad5f5c33120c465a33bd274910aa043c..f158b9a87488177177a54d9c108b98444c09eff3 100644 (file)
@@ -770,6 +770,13 @@ void wxGCDC::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height
         hh = -hh;
         yy = yy - hh;
     }
         hh = -hh;
         yy = yy - hh;
     }
+    if ( m_graphicContext->ShouldOffset() )
+    {
+        // if we are offsetting the entire rectangle is moved 0.5, so the
+        // border line gets off by 1
+        ww -= 1;
+        hh -= 1;
+    }
     m_graphicContext->DrawRectangle( xx,yy,ww,hh);
 }
 
     m_graphicContext->DrawRectangle( xx,yy,ww,hh);
 }