mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-03-19 09:11:41 +00:00
Fix last commit
oops
This commit is contained in:
parent
b8e701b5e1
commit
3d921a0aa5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue