added the recangle fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2006-10-26 06:21:57 +00:00
parent 9e6055389f
commit 5ebfdf4169

View File

@@ -770,6 +770,13 @@ void wxGCDC::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height
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);
}