You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
[JS] Check canvas size each loop, force redraw.
Remove ResizeObserver, fix compatibility issues, achieve smoother resizing.
This commit is contained in:
@@ -61,6 +61,9 @@ class OS_JavaScript : public OS_Unix {
|
||||
double last_click_ms;
|
||||
int last_click_button_index;
|
||||
|
||||
int last_width;
|
||||
int last_height;
|
||||
|
||||
MainLoop *main_loop;
|
||||
int video_driver_index;
|
||||
AudioDriverJavaScript audio_driver_javascript;
|
||||
@@ -105,6 +108,7 @@ protected:
|
||||
public:
|
||||
String canvas_id;
|
||||
void finalize_async();
|
||||
bool check_size_force_redraw();
|
||||
|
||||
// Override return type to make writing static callbacks less tedious.
|
||||
static OS_JavaScript *get_singleton();
|
||||
|
||||
Reference in New Issue
Block a user