diff --git a/platform/linuxbsd/display_server_wayland.cpp b/platform/linuxbsd/display_server_wayland.cpp index 79e81ad3bf49..6c82b443e6e0 100644 --- a/platform/linuxbsd/display_server_wayland.cpp +++ b/platform/linuxbsd/display_server_wayland.cpp @@ -792,6 +792,12 @@ int DisplayServerWayland::screen_get_dpi(int p_screen) const { return 0; } +float DisplayServerWayland::screen_get_refresh_rate(int p_screen) const { + // TODO + print_verbose("wayland stub screen_get_refresh_rate"); + return -1; +} + bool DisplayServerWayland::screen_is_touchscreen(int p_screen) const { // TODO print_verbose("wayland stub screen_is_touchscreen"); diff --git a/platform/linuxbsd/display_server_wayland.h b/platform/linuxbsd/display_server_wayland.h index 37166b80018d..df7cbeb8d061 100644 --- a/platform/linuxbsd/display_server_wayland.h +++ b/platform/linuxbsd/display_server_wayland.h @@ -313,6 +313,7 @@ class DisplayServerWayland : public DisplayServer { virtual Size2i screen_get_size(int p_screen = SCREEN_OF_MAIN_WINDOW) const override; virtual Rect2i screen_get_usable_rect(int p_screen = SCREEN_OF_MAIN_WINDOW) const override; virtual int screen_get_dpi(int p_screen = SCREEN_OF_MAIN_WINDOW) const override; + virtual float screen_get_refresh_rate(int p_screen = SCREEN_OF_MAIN_WINDOW) const override; virtual bool screen_is_touchscreen(int p_screen = SCREEN_OF_MAIN_WINDOW) const override; #if defined(DBUS_ENABLED)