summaryrefslogtreecommitdiff
path: root/servers/display_server.cpp
diff options
context:
space:
mode:
authorjordi <creptthrust@gmail.com>2022-01-27 13:46:57 -0600
committerjordi <creptthrust@gmail.com>2022-02-03 21:50:32 -0600
commit54dec44dbae4859842c6d99aafaafd186b33fee4 (patch)
tree404270d60c2baaba7031df98bb78c604872e30a3 /servers/display_server.cpp
parent203e261526ebe123523d7e6ea6cfc6c628216e9d (diff)
Add screen_get_refresh_rate to DisplayServer
Diffstat (limited to 'servers/display_server.cpp')
-rw-r--r--servers/display_server.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/display_server.cpp b/servers/display_server.cpp
index d4ff42bc34..f7afaab0f1 100644
--- a/servers/display_server.cpp
+++ b/servers/display_server.cpp
@@ -375,6 +375,7 @@ void DisplayServer::_bind_methods() {
ClassDB::bind_method(D_METHOD("screen_get_scale", "screen"), &DisplayServer::screen_get_scale, DEFVAL(SCREEN_OF_MAIN_WINDOW));
ClassDB::bind_method(D_METHOD("screen_is_touchscreen", "screen"), &DisplayServer::screen_is_touchscreen, DEFVAL(SCREEN_OF_MAIN_WINDOW));
ClassDB::bind_method(D_METHOD("screen_get_max_scale"), &DisplayServer::screen_get_max_scale);
+ ClassDB::bind_method(D_METHOD("screen_get_refresh_rate", "screen"), &DisplayServer::screen_get_refresh_rate, DEFVAL(SCREEN_OF_MAIN_WINDOW));
ClassDB::bind_method(D_METHOD("screen_set_orientation", "orientation", "screen"), &DisplayServer::screen_set_orientation, DEFVAL(SCREEN_OF_MAIN_WINDOW));
ClassDB::bind_method(D_METHOD("screen_get_orientation", "screen"), &DisplayServer::screen_get_orientation, DEFVAL(SCREEN_OF_MAIN_WINDOW));