From 1e81a53e753883bc39d1f5237a1f6acd07e01733 Mon Sep 17 00:00:00 2001 From: omar Date: Mon, 12 Mar 2018 16:22:24 +0100 Subject: [PATCH] Examples: DPI: Minor warning fix. (#1676) --- examples/imgui_impl_win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/imgui_impl_win32.cpp b/examples/imgui_impl_win32.cpp index ef0d6449..f8c40355 100644 --- a/examples/imgui_impl_win32.cpp +++ b/examples/imgui_impl_win32.cpp @@ -344,7 +344,7 @@ float ImGui_ImplWin32_GetDpiScaleForHwnd(void* hwnd) float ImGui_ImplWin32_GetDpiScaleForRect(int x1, int y1, int x2, int y2) { - RECT viewport_rect = { (UINT)x1, (UINT)y1, (UINT)x2, (UINT)y2 }; + RECT viewport_rect = { (LONG)x1, (LONG)y1, (LONG)x2, (LONG)y2 }; HMONITOR monitor = ::MonitorFromRect(&viewport_rect, MONITOR_DEFAULTTONEAREST); return ImGui_ImplWin32_GetDpiScaleForMonitor(monitor); }