From: Stefan Csomor Date: Mon, 6 Jun 2011 23:23:35 +0000 (+0000) Subject: using higher abstraction to allow for optimized implementations X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ab332136e4f44d57ceb5093b1b92c0ceaa160d9b using higher abstraction to allow for optimized implementations git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/graphcmn.cpp b/src/common/graphcmn.cpp index 34dae699a5..8536a68762 100644 --- a/src/common/graphcmn.cpp +++ b/src/common/graphcmn.cpp @@ -665,9 +665,7 @@ wxGraphicsContext::DoDrawFilledText(const wxString &str, // to make sure our 'OffsetToPixelBoundaries' doesn't move the fill shape SetPen( wxNullGraphicsPen ); - wxGraphicsPath path = CreatePath(); - path.AddRectangle( x , y, width, height ); - FillPath( path ); + DrawRectangle(x , y, width, height); DrawText( str, x ,y); SetBrush( formerBrush );