Skip to content

Commit

Permalink
FIXME cleanup...don't construct a wxSize to get TurtleSpace's new dim…
Browse files Browse the repository at this point in the history
…ensions.
  • Loading branch information
icculus committed Feb 26, 2007
1 parent f8cc67c commit 3d5dfe5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/toby_wxwidgets.cpp
Expand Up @@ -581,10 +581,7 @@ void TurtleSpace::onResize(wxSizeEvent &evt)
{
// Just cache the dimensions, since we're spending an enormous amount of
// time looking them up over and over during program execution.
// !!! FIXME: do this without the wxSize?
wxSize size(this->GetClientSize());
this->clientW = size.GetWidth();
this->clientH = size.GetHeight();
this->GetClientSize(&this->clientW, &this->clientH);
} // TurtleSpace::onResize


Expand Down

0 comments on commit 3d5dfe5

Please sign in to comment.