SDL_HINT_VITA_RESOLUTION(3)

πŸ’– SDL_HINT_VITA_RESOLUTION πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we're talking about SDL_HINT_VITA_RESOLUTION β€” and yes she is exactly what she sounds like πŸŽ€


✨ NAME ✨

SDL_HINT_VITA_RESOLUTION β€” a variable that overrides the resolution reported on the PlayStation Vita 🌈

like. it just. changes what the Vita says its screen is. that's the whole job. iconic behavior honestly πŸ‘‘


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_hints.h>

#define SDL_HINT_VITA_RESOLUTION "SDL_VITA_RESOLUTION"

copy that exactly, no cap, character for character 🫢


πŸ’… DESCRIPTION πŸ’…

so this variable can be set to the following values, and I need you to read them carefully because the numbers are doing a little bit of a thing:

  • "544" β€” 544p, and this one is the default ✨
  • "720" β€” 725p for PSTV πŸ‘€
  • "1080" β€” 1088i for PSTV πŸ‘€

yes bestie, I typed those exactly right. "720" gives you 725p and "1080" gives you 1088i. that's not me being silly, that's literally what the page says. iykyk πŸ’€

important timing check: this hint should be set before SDL is initialized. so like, set it early, set it first, set it before anything else gets a chance to happen. not me showing up late to the resolution party 😭

πŸ¦‹ AVAILABILITY πŸ¦‹

this hint has been available since SDL 3.2.0 ⭐

so if you're on something older, she's not there yet, no hard feelings 🌸


Simple Directmedia Layer Β· SDL 3.4.18 Β· SDL_HINT_VITA_RESOLUTION(3)

and that's the whole page, bestie πŸ’– go forth, set your hint before init, and slay your Vita resolution πŸŽ€βœ¨πŸ¦‹ periodt

πŸ“¦ where this page comes from