From 186954b0af3ac476da74235dc6bedd47643837dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 9 Feb 2002 23:27:10 +0000 Subject: [PATCH] wxDC::DoDrawRectangle hack is no longer needed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mgl/dc.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/mgl/dc.cpp b/src/mgl/dc.cpp index e9a24c404e..702f27e2d7 100644 --- a/src/mgl/dc.cpp +++ b/src/mgl/dc.cpp @@ -558,15 +558,8 @@ void wxDC::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height) if ( !m_penSelected ) SelectPen(); - // VS: MGLDC::rect() does not render rectangles that have width - // or height equal to 1, so we have to use MGLDC::line() - // instead... - if ( hh == 1 || ww == 1 ) - m_MGLDC->line(xx + m_penOfsX, yy + m_penOfsY, - xx + ww-1 + m_penOfsX, yy + hh-1 + m_penOfsY); - else - m_MGLDC->rect(xx + m_penOfsX, yy + m_penOfsY, - xx + ww + m_penOfsX, yy + hh + m_penOfsY); + m_MGLDC->rect(xx + m_penOfsX, yy + m_penOfsY, + xx + ww + m_penOfsX, yy + hh + m_penOfsY); } CalcBoundingBox(x, y); -- 2.45.2