Skip to content

Commit

Permalink
ViewerWindow: move show_1to1 init before first adjustCanvasSize()
Browse files Browse the repository at this point in the history
  • Loading branch information
bk138 committed Jan 21, 2024
1 parent 8633203 commit 783d758
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gui/ViewerWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ ViewerWindow::ViewerWindow(wxWindow* parent, VNCConn* conn):
/*
setup upper window
*/
// set some default for now
this->show_1to1 = false;
canvas_container->SetSizer(new wxBoxSizer(wxHORIZONTAL));
canvas = new VNCCanvas(canvas_container, conn);
adjustCanvasSize();
Expand Down Expand Up @@ -417,9 +419,6 @@ ViewerWindow::ViewerWindow(wxWindow* parent, VNCConn* conn):
// IMPORTANT: make sizer obey to size hints!
stats_container->GetSizer()->SetSizeHints(stats_container);

// set some default for now
this->show_1to1 = false;

stats_timer.SetOwner(this, VIEWERWINDOW_STATS_TIMER_ID);
}

Expand Down

0 comments on commit 783d758

Please sign in to comment.