Make VideoDisplay's size calculations slightly less convoluted.

Originally committed to SVN as r4727.
This commit is contained in:
Thomas Goyne 2010-08-03 20:21:19 +00:00
parent 11d67ec6ae
commit d5cbb534f8

View file

@ -402,13 +402,9 @@ void VideoDisplay::UpdateSize() {
viewport_width = w; viewport_width = w;
viewport_height = h; viewport_height = h;
// Sizers ignore SetClientSize/SetSize, so only use them to calculate
// what size is required after including the borders
SetClientSize(cw, ch);
GetSize(&cw, &ch);
wxSize size(cw, ch); wxSize size(cw, ch);
SetMinSize(size); SetMinClientSize(size);
SetMaxSize(size); SetMaxClientSize(size);
locked = true; locked = true;
box->VideoSizer->Fit(box); box->VideoSizer->Fit(box);