[Simulator] Don't resize canvas to 0x0 (#310)

* [Simulator] Don't resize canvas to 0x0

* [storage] Fix broken script saving/loading

* [Simulator] Don't resize canvas to 0x0

Co-authored-by: Yaya-Cout <yaya.cout@free.fr>
This commit is contained in:
Loïc
2023-01-05 17:33:53 +01:00
committed by GitHub
parent 7030c58c51
commit 72d10f8396

View File

@@ -268,9 +268,6 @@ Emscripten_DestroyWindow(_THIS, SDL_Window * window)
data->egl_surface = EGL_NO_SURFACE;
}
#endif
/* We can't destroy the canvas, so resize it to zero instead */
emscripten_set_canvas_element_size(data->canvas_id, 0, 0);
SDL_free(data->canvas_id);
SDL_free(window->driverdata);