diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-09-30 03:25:41 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-09-30 03:25:41 +0000 |
| commit | eae448239986ef4cb2833b5c7c1313e86f28b233 (patch) | |
| tree | a18b8475b3489df6ed7719e7a810c76046a095f0 /Imgui/src/ImGuiImplUWP.cpp | |
| parent | Enabled ImGui on UWP (diff) | |
| download | DiligentTools-eae448239986ef4cb2833b5c7c1313e86f28b233.tar.gz DiligentTools-eae448239986ef4cb2833b5c7c1313e86f28b233.zip | |
ImGui UWP: fixed window resizing
Diffstat (limited to 'Imgui/src/ImGuiImplUWP.cpp')
| -rw-r--r-- | Imgui/src/ImGuiImplUWP.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Imgui/src/ImGuiImplUWP.cpp b/Imgui/src/ImGuiImplUWP.cpp index 4389785..16f1007 100644 --- a/Imgui/src/ImGuiImplUWP.cpp +++ b/Imgui/src/ImGuiImplUWP.cpp @@ -82,10 +82,7 @@ void ImGuiImplUWP::NewFrame() ImGuiIO& io = ImGui::GetIO(); IM_ASSERT(io.Fonts->IsBuilt() && "Font atlas not built! It is generally built by the renderer back-end. Missing call to renderer _NewFrame() function? e.g. ImGui_ImplOpenGL3_NewFrame()."); - // Setup display size (every frame to accommodate for window resizing) - RECT rect = {0, 0, 1280, 1024}; - //::GetClientRect(g_hWnd, &rect); - io.DisplaySize = ImVec2((float)(rect.right - rect.left), (float)(rect.bottom - rect.top)); + io.DisplaySize = ImVec2((float)m_DisplayWidth, (float)m_DisplayHeight); // Setup time step INT64 current_time; |
