1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Improve HTML5 canvas management

- set_window_maximized hides page content
 - Fix sporadic full-screen render-size bug in Chromium
 - Smoother resizing for maximized canvas
This commit is contained in:
L. Krause
2017-07-25 20:55:44 +02:00
parent 246b574909
commit bd48f210a1
2 changed files with 70 additions and 48 deletions

View File

@@ -59,7 +59,10 @@ class OS_JavaScript : public OS_Unix {
const char *gl_extensions;
InputDefault *input;
Vector2 windowed_size;
bool window_maximized;
bool soft_fs_enabled;
bool canvas_size_adjustment_requested;
VideoMode video_mode;
CursorShape cursor_shape;
MainLoop *main_loop;
@@ -130,6 +133,8 @@ public:
virtual void set_window_fullscreen(bool p_enable);
virtual bool is_window_fullscreen() const;
void request_canvas_size_adjustment();
virtual String get_name();
virtual MainLoop *get_main_loop() const;