From 961057c9e2afeec76586d29d58b121d814b8ab28 Mon Sep 17 00:00:00 2001 From: Anthony Pesch Date: Sun, 3 Sep 2017 11:04:04 -0400 Subject: [PATCH] call ImGui::NewFrame after setting DisplaySize --- src/render/imgui.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render/imgui.cc b/src/render/imgui.cc index c96b8864..4308ff69 100644 --- a/src/render/imgui.cc +++ b/src/render/imgui.cc @@ -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(width), static_cast(height)); + + ImGui::NewFrame(); #endif }