|
Size: 1159
Comment: update content - 2/28 5421 (2/10 5244)
|
Size: 1157
Comment: minor change
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 18: | Line 18: |
| ||'''modeIndex'''||^the index of the requested display mode^|| | ||'''modeIndex'''||the index of the requested display mode|| |
SDL_GetDisplayMode
Use this function to fill in information about a specific display mode.
Contents
Syntax
int SDL_GetDisplayMode(int displayIndex,
int modeIndex,
SDL_DisplayMode* mode)
Function Parameters
displayIndex |
the index of the display to query |
modeIndex |
the index of the requested display mode |
mode |
an SDL_DisplayMode structure filled in with the mode index |
Return Value
Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
Code Examples
You can add your code example here
Remarks
The display modes are sorted in this priority:
bits per pixel -> more colors to fewer colors
width -> largest to smallest
height -> largest to smallest
refresh rate -> highest to lowest
