diff options
| author | Ray <[email protected]> | 2024-06-30 11:37:58 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2024-06-30 11:37:58 +0200 |
| commit | 1e1061d5c7582090df0851c08359d7c7847f9559 (patch) | |
| tree | 8e5d77c6507a893314d6383e0041450dccc79e22 /src/platforms/rcore_web.c | |
| parent | 13e309251184343b67773d16e6e264c7cac7c280 (diff) | |
| download | raylib-1e1061d5c7582090df0851c08359d7c7847f9559.tar.gz raylib-1e1061d5c7582090df0851c08359d7c7847f9559.zip | |
REVIEWED: Formatting, follow raylib coding conventions
Diffstat (limited to 'src/platforms/rcore_web.c')
| -rw-r--r-- | src/platforms/rcore_web.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/platforms/rcore_web.c b/src/platforms/rcore_web.c index afe8adfb..47b8d42d 100644 --- a/src/platforms/rcore_web.c +++ b/src/platforms/rcore_web.c @@ -190,7 +190,8 @@ void ToggleFullscreen(void) if (enterFullscreen) { // NOTE: The setTimeouts handle the browser mode change delay - EM_ASM( + EM_ASM + ( setTimeout(function() { Module.requestFullscreen(false, false); @@ -298,7 +299,8 @@ void ToggleBorderlessWindowed(void) { // NOTE: 1. The setTimeouts handle the browser mode change delay // 2. The style unset handles the possibility of a width="value%" like on the default shell.html file - EM_ASM( + EM_ASM + ( setTimeout(function() { Module.requestFullscreen(false, true); |
