summaryrefslogtreecommitdiffstats
path: root/platform/javascript/display_server_javascript.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-07-27 14:32:48 +0200
committerGitHub <noreply@github.com>2020-07-27 14:32:48 +0200
commit6e577a5b805121b3725defc45220d75fcbc6442b (patch)
treedead74b7030611a969af4f4067bd9a2b4f724af9 /platform/javascript/display_server_javascript.h
parent3e87022ecce3a56e43324236561ecf13316517dc (diff)
parent0b286a287ca35275988f22a60f307521c5b08437 (diff)
downloadredot-engine-6e577a5b805121b3725defc45220d75fcbc6442b.tar.gz
Merge pull request #40755 from Faless/js/fix_and_cancel_swap
Cancel/OK swap on HTML5 platform, small fixes.
Diffstat (limited to 'platform/javascript/display_server_javascript.h')
-rw-r--r--platform/javascript/display_server_javascript.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/javascript/display_server_javascript.h b/platform/javascript/display_server_javascript.h
index b149665d67..6569ef1e42 100644
--- a/platform/javascript/display_server_javascript.h
+++ b/platform/javascript/display_server_javascript.h
@@ -56,6 +56,8 @@ class DisplayServerJavaScript : public DisplayServer {
int last_width = 0;
int last_height = 0;
+ bool swap_cancel_ok = false;
+
// utilities
static Point2 compute_position_in_canvas(int p_x, int p_y);
static void focus_canvas();
@@ -195,6 +197,7 @@ public:
virtual void set_icon(const Ref<Image> &p_icon);
// others
+ virtual bool get_swap_cancel_ok();
virtual void swap_buffers();
static void register_javascript_driver();