summaryrefslogtreecommitdiffstats
path: root/platform/web
diff options
context:
space:
mode:
authorAdam Scott <ascott.ca@gmail.com>2024-11-07 14:06:34 -0500
committerAdam Scott <ascott.ca@gmail.com>2024-11-07 14:06:34 -0500
commit784558f3278b18cff25cc1f4f5a96aba81d449a8 (patch)
tree4efc3babd7e836a218415defe29a8e6d45177e24 /platform/web
parent36e6207bb48fafd43b98a458d0c461ad982b4e68 (diff)
downloadredot-engine-784558f3278b18cff25cc1f4f5a96aba81d449a8.tar.gz
[Web] Remove warnings when setting vsync mode and screen keep on
Diffstat (limited to 'platform/web')
-rw-r--r--platform/web/display_server_web.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/web/display_server_web.h b/platform/web/display_server_web.h
index 352b3fe523..c28a6fd082 100644
--- a/platform/web/display_server_web.h
+++ b/platform/web/display_server_web.h
@@ -209,6 +209,7 @@ public:
virtual int screen_get_dpi(int p_screen = SCREEN_OF_MAIN_WINDOW) const override;
virtual float screen_get_scale(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 void screen_set_keep_on(bool p_enable) override {}
virtual void virtual_keyboard_show(const String &p_existing_text, const Rect2 &p_screen_rect = Rect2(), VirtualKeyboardType p_type = KEYBOARD_TYPE_DEFAULT, int p_max_input_length = -1, int p_cursor_start = -1, int p_cursor_end = -1) override;
virtual void virtual_keyboard_hide() override;
@@ -265,6 +266,7 @@ public:
virtual bool can_any_window_draw() const override;
+ virtual void window_set_vsync_mode(VSyncMode p_vsync_mode, WindowID p_window = MAIN_WINDOW_ID) override {}
virtual DisplayServer::VSyncMode window_get_vsync_mode(WindowID p_vsync_mode) const override;
// events