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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user