The refresh rate in SDL_DisplayMode is now a float

This commit is contained in:
Sam Lantinga 2023-01-02 15:47:19 -08:00
parent 851b0e16be
commit e3c1749f5b
32 changed files with 107 additions and 83 deletions

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;

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;