From: Vadim Zeitlin Date: Sat, 14 Apr 2001 22:07:42 +0000 (+0000) Subject: fixed DoDrawEllipse() bbox calculation (patch 415116) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/44856297325729dec296be659fa40ba003d2a64f fixed DoDrawEllipse() bbox calculation (patch 415116) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index 1a0bee58b5..f283c9b53a 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -951,7 +951,7 @@ void wxWindowDC::DoDrawEllipse( wxCoord x, wxCoord y, wxCoord width, wxCoord hei gdk_draw_arc( m_window, m_penGC, FALSE, xx, yy, ww, hh, 0, 360*64 ); } - CalcBoundingBox( x - width, y - height ); + CalcBoundingBox( x, y ); CalcBoundingBox( x + width, y + height ); } diff --git a/src/gtk1/dcclient.cpp b/src/gtk1/dcclient.cpp index 1a0bee58b5..f283c9b53a 100644 --- a/src/gtk1/dcclient.cpp +++ b/src/gtk1/dcclient.cpp @@ -951,7 +951,7 @@ void wxWindowDC::DoDrawEllipse( wxCoord x, wxCoord y, wxCoord width, wxCoord hei gdk_draw_arc( m_window, m_penGC, FALSE, xx, yy, ww, hh, 0, 360*64 ); } - CalcBoundingBox( x - width, y - height ); + CalcBoundingBox( x, y ); CalcBoundingBox( x + width, y + height ); }