SDL_HINT_VID...CALING_FACTOR(3)
π NAME π
SDL_HINT_VIDEO_X11_SCALING_FACTOR β a variable that forces the content scaling factor for X11 displays. yes bestie, it does exactly what it says on the tin π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_hints.h>
#define SDL_HINT_VIDEO_X11_SCALING_FACTOR "SDL_VIDEO_X11_SCALING_FACTOR"
π¦ DESCRIPTION π¦
okay so here's the tea β β you can set this variable to a floating point value, and it's gotta live in the range 1.0-10.0f. that's the whole vibe. no more, no less, no in-between shenanigans. π
πΈ important, bestie: set this hint before SDL is initialized. like, before. if you're late to the party it's not gonna hit the same, fr fr. π
π AVAILABILITY π
this hint has been serving looks since SDL 3.2.0 β¨ lowkey iconic of it honestly.
and that's the whole page, no cap π«Ά this came to you straight from Simple Directmedia Layer, sitting pretty at version SDL 3.4.18 β go forth and scale, main character π
β
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms