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