mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Added a 'refreshrate' field to the table returned by love.window.getMode. The value may be 0 if the refresh rate of the monitor can't be determined. It might also be 59 instead of 60 on 59.94hz monitors on some operating systems.
This commit is contained in:
@@ -59,6 +59,7 @@ public:
|
||||
SETTING_DISPLAY,
|
||||
SETTING_HIGHDPI,
|
||||
SETTING_SRGB,
|
||||
SETTING_REFRESHRATE,
|
||||
SETTING_MAX_ENUM
|
||||
};
|
||||
|
||||
@@ -198,6 +199,7 @@ struct WindowSettings
|
||||
int display; // = 0
|
||||
bool highdpi; // false
|
||||
bool sRGB; // false
|
||||
double refreshrate; // 0.0
|
||||
|
||||
}; // WindowSettings
|
||||
|
||||
|
||||
Reference in New Issue
Block a user