Added fractional representation of refresh rate to SDL_DisplayMode
This commit is contained in:
1 parent
1162a1cb8e
commit
730d5cf2f8
14 files changed
+81
-68
No files matched your search
@@ -1962,7 +1962,7 @@ The SDL_WINDOW_SKIP_TASKBAR flag has been replaced by the SDL_WINDOW_UTILITY fla
|
||||
|
||||
SDL_DisplayMode now includes the pixel density which can be greater than 1.0 for display modes that have a higher pixel size than the mode size. You should use SDL_GetWindowSizeInPixels() to get the actual pixel size of the window back buffer.
|
||||
|
||||
The refresh rate in SDL_DisplayMode is now a float.
|
||||
The refresh rate in SDL_DisplayMode is now a float, as well as being represented as a precise fraction with numerator and denominator.
|
||||
|
||||
Rather than iterating over display modes using an index, there is a new function SDL_GetFullscreenDisplayModes() to get the list of available fullscreen modes on a display.
|
||||
```c
|
||||
|
||||
Reference in new issue
Block a user