SDL >= 2.24.0 is required.
Fixes https://gitlab.com/xonotic/darkplaces/-/issues/32
Fixes https://github.com/DarkPlacesEngine/darkplaces/issues/74
Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
#endif
}
+ // DPI scaling prevents use of the native resolution, causing blurry rendering
+ // and/or mouse cursor problems, so we need to opt-out.
+#ifdef WIN32
+ SDL_SetHint(SDL_HINT_WINDOWS_DPI_AWARENESS, "1");
+#endif
if (vid_mouse_clickthrough.integer)
SDL_SetHint(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, "1");