mirror of
https://github.com/godotengine/godot.git
synced 2025-10-21 00:43:46 +00:00
Add screen_get_refresh_rate to DisplayServer
This commit is contained in:
parent
203e261526
commit
54dec44dba
19 changed files with 172 additions and 0 deletions
|
@ -794,6 +794,10 @@ float DisplayServerJavaScript::screen_get_scale(int p_screen) const {
|
|||
return godot_js_display_pixel_ratio_get();
|
||||
}
|
||||
|
||||
float DisplayServerJavaScript::screen_get_refresh_rate(int p_screen) const {
|
||||
return SCREEN_REFRESH_RATE_FALLBACK; // Javascript doesn't have much of a need for the screen refresh rate, and there's no native way to do so.
|
||||
}
|
||||
|
||||
Vector<DisplayServer::WindowID> DisplayServerJavaScript::get_window_list() const {
|
||||
Vector<WindowID> ret;
|
||||
ret.push_back(MAIN_WINDOW_ID);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue