Make VideoDisplay's size calculations slightly less convoluted.
Originally committed to SVN as r4727.
This commit is contained in:
parent
11d67ec6ae
commit
d5cbb534f8
1 changed files with 2 additions and 6 deletions
|
@ -402,13 +402,9 @@ void VideoDisplay::UpdateSize() {
|
|||
viewport_width = w;
|
||||
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);
|
||||
SetMinSize(size);
|
||||
SetMaxSize(size);
|
||||
SetMinClientSize(size);
|
||||
SetMaxClientSize(size);
|
||||
|
||||
locked = true;
|
||||
box->VideoSizer->Fit(box);
|
||||
|
|
Loading…
Reference in a new issue