A variable forcing non-DPI-aware Wayland windows to output at 1:1 scaling.
Defined in <SDL3/SDL_hints.h>
#define SDL_HINT_VIDEO_WAYLAND_SCALE_TO_DISPLAY "SDL_VIDEO_WAYLAND_SCALE_TO_DISPLAY"
This must be set before initializing the video subsystem.
When this hint is set, Wayland windows that are not flagged as being DPI-aware will be output with scaling designed to force 1:1 pixel mapping.
This is intended to allow legacy applications to be displayed without desktop scaling being applied, and has issues with certain display configurations, as this forces the window to behave in a way that Wayland desktops were not designed to accommodate:
New applications should be designed with proper DPI awareness handling instead of enabling this.
The variable can be set to the following values:
This hint should be set before creating a window.
This hint is available since SDL 3.1.3.