diff options
| author | Ray <[email protected]> | 2020-02-24 12:35:53 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-02-24 12:35:53 +0100 |
| commit | 32e374d9417ff91fc0c6639d4f6e4db02c9cfc26 (patch) | |
| tree | baa86973cbb6eee9506715b6afe3faf87044f4cc /src | |
| parent | 113a580021dc8f9d71c61804e5b8e746369e7626 (diff) | |
| download | raylib-32e374d9417ff91fc0c6639d4f6e4db02c9cfc26.tar.gz raylib-32e374d9417ff91fc0c6639d4f6e4db02c9cfc26.zip | |
[core] SetWindowSize() try to support PLATFORM_WEB -WIP-
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |
