From 3d921a0aa5ee4b341fa1924c87eda60ada438d77 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Sat, 30 Nov 2024 20:38:09 +0100 Subject: [PATCH] Fix last commit oops --- neo/sys/sys_imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/sys/sys_imgui.cpp b/neo/sys/sys_imgui.cpp index d33cdb6f..82a1de15 100644 --- a/neo/sys/sys_imgui.cpp +++ b/neo/sys/sys_imgui.cpp @@ -174,7 +174,7 @@ static float GetDefaultScale() float ret = SDL_GetWindowDisplayScale( sdlWindow ); #else float dpi = 0.0f; - int winIdx = SDL_GetWindowDisplayIndex( win ); + int winIdx = SDL_GetWindowDisplayIndex( sdlWindow ); SDL_GetDisplayDPI((winIdx >= 0) ? winIdx : 0, NULL, &dpi, NULL); // TODO: different reference DPI on mac? also, doesn't work that well on my laptop.. float ret = dpi / 96.0f;