Skip to content

Commit

Permalink
#5864: Remove superfluous size call
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Mar 1, 2022
1 parent a2dd94b commit 672e0df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions libs/wxutil/preview/GuiView.cpp
Expand Up @@ -127,8 +127,7 @@ void GuiView::onSizeAllocate(wxSizeEvent& ev)
// Store the window dimensions for later calculations
_windowDims = Vector2(ev.GetSize().GetWidth(), ev.GetSize().GetHeight());

// Queue an expose event
Refresh();
ev.Skip();
}

} // namespace
2 changes: 0 additions & 2 deletions plugins/dm.editing/MissionInfoGuiView.cpp
Expand Up @@ -25,8 +25,6 @@ void MissionInfoGuiView::setGLViewPort()
height = width / aspectRatio;
}

SetSize(static_cast<int>(width), -1);

glViewport(0, 0, static_cast<GLsizei>(width), static_cast<GLsizei>(height));
}

Expand Down

0 comments on commit 672e0df

Please sign in to comment.