X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/497b78dfacb5e739fe7da7869f3a92a2e2747dbc..955c525d2c9fd998494f52e4592db56ad4e0b990:/src/mgl/dc.cpp diff --git a/src/mgl/dc.cpp b/src/mgl/dc.cpp index e9a24c404e..aab6d8f990 100644 --- a/src/mgl/dc.cpp +++ b/src/mgl/dc.cpp @@ -4,7 +4,7 @@ // Author: Vaclav Slavik // Created: 2001/03/09 // RCS-ID: $Id$ -// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com) +// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -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);