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
This commit is contained in:
Stefan Csomor
2011-06-06 23:23:35 +00:00
parent 2bc4cc1ead
commit ab332136e4

View File

@@ -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 );