Skip to content

Commit e0f35a5

Browse files
committed
Fixed scale to 1.0f window
1 parent 50a564f commit e0f35a5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/ImGui/src/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ int WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
112112
{
113113
// Make process DPI aware and obtain main monitor scale
114114
ImGui_ImplWin32_EnableDpiAwareness();
115-
float main_scale = ImGui_ImplWin32_GetDpiScaleForMonitor(::MonitorFromPoint(POINT{ 0, 0 }, MONITOR_DEFAULTTOPRIMARY));
115+
//float main_scale = ImGui_ImplWin32_GetDpiScaleForMonitor(::MonitorFromPoint(POINT{ 0, 0 }, MONITOR_DEFAULTTOPRIMARY));
116+
float main_scale = 1.0f;
116117

117118
// Create application window
118119
WNDCLASSEXW wc = { sizeof(wc), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(nullptr), nullptr, nullptr, nullptr, nullptr, L"ImGui Example", nullptr };

0 commit comments

Comments
 (0)