Don't pass unused arguments to GetTextExtent() in printing sample

No real changes, just remove the completely unused local variables and
parameters to wxGraphicsContext::GetTextExtent() call.
This commit is contained in:
Vadim Zeitlin
2019-02-03 22:42:55 +01:00
parent efa1e8f4ff
commit 7a05aa6dc0

View File

@@ -243,8 +243,8 @@ void MyApp::Draw(wxDC&dc)
gc->DrawText(text, 25.0, 60.0);
// draw rectangle around the text
double w, h, d, el;
gc->GetTextExtent(text, &w, &h, &d, &el);
double w, h;
gc->GetTextExtent(text, &w, &h);
gc->SetPen( *wxBLACK_PEN );
gc->DrawRectangle(25.0, 60.0, w, h);