diff options
author | Guilherme Felipe <guilhermefelipecgs@gmail.com> | 2019-07-08 17:37:18 -0300 |
---|---|---|
committer | Guilherme Felipe <guilhermefelipecgs@gmail.com> | 2019-07-09 19:38:25 -0300 |
commit | a9a0d0fb15cc5e028dbf8dab8b46d3dc197c4678 (patch) | |
tree | 9c6109f8ec2147375a1334fc19cea94b65aa2015 /platform/javascript/os_javascript.h | |
parent | 5e495750a37e3314a8cd85cb3f7be9a676420c44 (diff) | |
download | redot-engine-a9a0d0fb15cc5e028dbf8dab8b46d3dc197c4678.tar.gz |
Fix cursor blinking in integrated GPUs
Optimization for Input::set_custom_mouse_cursor when used inside
_process function. (Avoids cursor blinking in low end devices)
Diffstat (limited to 'platform/javascript/os_javascript.h')
-rw-r--r-- | platform/javascript/os_javascript.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/javascript/os_javascript.h b/platform/javascript/os_javascript.h index 9635465c0d..10676c49f7 100644 --- a/platform/javascript/os_javascript.h +++ b/platform/javascript/os_javascript.h @@ -52,6 +52,7 @@ class OS_JavaScript : public OS_Unix { Ref<InputEventKey> deferred_key_event; CursorShape cursor_shape; String cursors[CURSOR_MAX]; + Map<CursorShape, Vector<Variant> > cursors_cache; Point2 touches[32]; Point2i last_click_pos; |