SDL Wiki
(This is the documentation for SDL3, which is under heavy development and the API is changing! SDL2 is the current stable version!)


A variable forcing non-DPI-aware Wayland windows to output at 1:1 scaling.

Header File

Defined in <SDL3/SDL_hints.h>




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.0.0.

CategoryAPI, CategoryAPIMacro, CategoryHints

[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.