Fix last commit

oops
This commit is contained in:
Daniel Gibson 2024-11-30 20:38:09 +01:00
parent b8e701b5e1
commit 3d921a0aa5

View file

@ -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;