logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_HINT_VIDEO_DISPLAY_PRIORITY - A comma separated list containing the names of the displays that SDL

Availability

       This hint is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                 SDL_HINT_VIDEO_DISPLAY_PRIORITY(3)

Description

       When this hint is set, displays with matching name strings will be prioritized in the list  of  displays,
       as exposed by calling

       SDL_GetDisplays  (),  with  the first listed becoming the primary display. The naming convention can vary
       depending on the environment, but it is usually a connector name (e.g. 'DP-1', 'DP-2',

       On Wayland and X11 desktops, the connector names associated with displays can typically be found by using
       the xrandr utility.

       This hint is currently supported on the following drivers:

       • KMSDRM (kmsdrm)

       • Wayland (wayland)

       • X11 (x11)

       This hint should be set before SDL is initialized.

Header File

       Defined in SDL3/SDL_hints.h

Name

       SDL_HINT_VIDEO_DISPLAY_PRIORITY  -  A  comma separated list containing the names of the displays that SDL
       should sort to the front of the display list.

Synopsis

#include"SDL3/SDL.h"#defineSDL_HINT_VIDEO_DISPLAY_PRIORITYSDL_VIDEO_DISPLAY_PRIORITY"

See Also