summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNikhilesh S <[email protected]>2021-06-23 01:02:18 -0700
committerGitHub <[email protected]>2021-06-23 10:02:18 +0200
commitf7a6b94f46b296394791a8104663bcc94a877b1a (patch)
treee25f19386d5f2166b330a0cea6ef790cc8bbb29b
parent7203acdef974014fde0629b49ea8d6a70e7de4d6 (diff)
downloadraylib-f7a6b94f46b296394791a8104663bcc94a877b1a.tar.gz
raylib-f7a6b94f46b296394791a8104663bcc94a877b1a.zip
Allow SetWindowSize() on web (#1847)
-rw-r--r--src/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index e70b9474..e711e4ec 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1560,7 +1560,7 @@ void SetWindowMinSize(int width, int height)
// TODO: Issues on HighDPI scaling
void SetWindowSize(int width, int height)
{
-#if defined(PLATFORM_DESKTOP)
+#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB)
glfwSetWindowSize(CORE.Window.handle, width, height);
#endif
#if defined(PLATFORM_WEB)