SDL_GetDesktopDisplayMode

Get information about the desktop's display mode.

There's a difference between this function and SDL_GetCurrentDisplayMode() when SDL runs fullscreen and has changed the resolution. In that case this function will return the previous native display mode, and not the current display mode.

extern (C) nothrow @nogc extern
SDL_GetDesktopDisplayMode

Parameters

displayID SDL_DisplayID

the instance ID of the display to query.

Return Value

Type: const(SDL_DisplayMode)*

a pointer to the desktop display mode or NULL on failure; call SDL_GetError() for more information.

Threadsafety: This function should only be called on the main thread.

See Also

Meta