Skip to content

Commit

Permalink
Implement a stub screen_get_refresh_rate
Browse files Browse the repository at this point in the history
This is needed to make the editor compile after we rebased.
  • Loading branch information
Riteo committed Feb 15, 2022
1 parent ce7ece8 commit c67cf1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions platform/linuxbsd/display_server_wayland.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
1 change: 1 addition & 0 deletions platform/linuxbsd/display_server_wayland.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c67cf1b

Please sign in to comment.