Function Display.getClosestDisplayMode
Wraps SDL_GetClosestDisplayMode
which gets the closest display mode of the display to the desired mode
Parameters
Name | Description |
---|---|
desiredMode | the desired dsdl2 |
Returns
the closest available dsdl2
of the display
Throws
dsdl2
if failed to get the closest display mode