Skip to content

Commit d023745

Browse files
committed
Found magic string to disable windows DPI.
1 parent 901a290 commit d023745

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Nu/Nu/Sdl/Sdl.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ module SdlDeps =
119119
let tryMake sdlConfig accompanied (windowSize : Vector2i) =
120120
match attemptPerformSdlInit
121121
(fun () ->
122-
SDL.SDL_SetHint (SDL.SDL_HINT_VIDEO_HIGHDPI_DISABLED, "1") |> ignore<SDL.SDL_bool>
122+
SDL.SDL_SetHint ("SDL_WINDOWS_DPI_AWARENESS", "system") |> ignore<SDL.SDL_bool>
123123
SDL.SDL_SetHint (SDL.SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4, "1") |> ignore<SDL.SDL_bool>
124124
let initConfig =
125125
SDL.SDL_INIT_TIMER |||

0 commit comments

Comments
 (0)