call ImGui::NewFrame after setting DisplaySize

This commit is contained in:
Anthony Pesch 2017-09-03 11:04:04 -04:00
parent 56a6880ff9
commit 961057c9e2
1 changed files with 2 additions and 2 deletions

View File

@ -76,11 +76,11 @@ extern "C" void imgui_begin_frame(struct imgui *imgui, int width, int height) {
#ifdef HAVE_IMGUI
ImGuiIO &io = ImGui::GetIO();
ImGui::NewFrame();
io.MouseWheel = 0.0;
io.DisplaySize =
ImVec2(static_cast<float>(width), static_cast<float>(height));
ImGui::NewFrame();
#endif
}