summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 5763e148..559565dd 100644
--- a/src/core.c
+++ b/src/core.c
@@ -974,6 +974,14 @@ void SetWindowSize(int width, int height)
#if defined(PLATFORM_DESKTOP)
glfwSetWindowSize(CORE.Window.handle, width, height);
#endif
+#if defined(PLATFORM_WEB)
+ emscripten_set_canvas_size(width, height); // DEPRECATED!
+
+ // TODO: Below functions should be used to replace previous one but
+ // they do not seem to work properly
+ //emscripten_set_canvas_element_size("canvas", width, height);
+ //emscripten_set_element_css_size("canvas", width, height);
+#endif
}
// Show the window