Function Display.currentDisplayMode

Wraps SDL_GetCurrentDisplayMode which gets the current display mode for the display

DisplayMode currentDisplayMode() @property @trusted const;

Returns

the current dsdl2.DisplayMode

Throws

dsdl2.SDLException if failed to get the current display mode