The refresh rate in SDL_DisplayMode is now a float

This commit is contained in:
Sam Lantinga committed 2023-01-03 06:35:25 -08:00
1 parent 851b0e16be
commit e3c1749f5b
32 files changed
+107 -83

No files matched your search

+1 -1
View File
@@ -78,7 +78,7 @@ typedef struct
int logical_h;
float scale;
int depth;
int refresh_rate;
float refresh_rate;
int num_windows;
SDL_Window **windows;
+1 -1
View File
@@ -55,7 +55,7 @@ typedef struct
Uint32 format; /**< pixel format */
int w; /**< width, in screen coordinates */
int h; /**< height, in screen coordinates */
int refresh_rate; /**< refresh rate (or zero for unspecified) */
float refresh_rate; /**< refresh rate (or zero for unspecified) */
void *driverdata; /**< driver-specific data, initialize to 0 */
} SDL_DisplayMode;