Display.getClosestDisplayMode

Wraps SDL_GetClosestDisplayMode which gets the closest display mode of the display to the desired mode

class Display
const @trusted
getClosestDisplayMode

Parameters

desiredMode DisplayMode

the desired dsdl2.DisplayMode

Return Value

the closest available dsdl2.DisplayMode of the display

Throws

dsdl2.SDLException if failed to get the closest display mode

Meta