SDL_HINT_VIDEO_ALLOW_SCREENSAVER(3)
π SDL_HINT_VIDEO_ALLOW_SCREENSAVER π
okay bestie, so this is a page from the SDL3 FUNCTIONS manual β yes, the big SDL3 one, we're living in the future fr fr. Sit down, hydrate, and let's talk about whether your screen is allowed to go sleepy-bye. π¦
β¨ NAME β¨
SDL_HINT_VIDEO_ALLOW_SCREENSAVER β a variable controlling whether the screensaver is enabled. π
Like, that's it. That's the whole job. She's a hint, she's got one (1) opinion, and her opinion is: screensaver on or off? π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_hints.h>
#define SDL_HINT_VIDEO_ALLOW_SCREENSAVER "SDL_VIDEO_ALLOW_SCREENSAVER"
so you pull in the header, and the macro itself literally expands to that string, no cap. "SDL_VIDEO_ALLOW_SCREENSAVER" β character for character, don't go freestyling it. π
β¨ DESCRIPTION β¨
The variable can be set to the following values:
- "0": Disable screensaver. (default) β this is the vibe she ships with, the factory setting, the main character default β¨
- "1": Enable screensaver. πΈ
β οΈ real talk β this hint should be set before SDL is initialized. Not after. Before. If you roll up late with your hint in hand, that's giving "arrived after the group photo" energy and it will not do what you want. π
β¨ AVAILABILITY β¨
This hint is available since SDL 3.2.0. π If you're on anything older, bestie, I'm so sorry, she simply does not exist yet. π§
Simple Directmedia Layer Β· SDL 3.4.18 Β· SDL_HINT_VIDEO_ALLOW_SCREENSAVER(3) β and that's the whole page, love u, go forth and control ur screensaver responsibly ππ«Άβ¨
π¦ 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