mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-21 16:54:31 +00:00
trigger resize event when going into and out of fullscreen mode
This commit is contained in:
parent
d0d42e78ea
commit
358917ffc3
@ -1662,6 +1662,9 @@ static EM_BOOL EmscriptenFullscreenChangeCallback(int eventType, const Emscripte
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// trigger resize event after a brief pause to ensure the canvas exists to resize
|
||||||
|
EM_ASM({ setTimeout(function() { window.dispatchEvent(new Event("resize")); }, 50); });
|
||||||
|
|
||||||
return 1; // The event was consumed by the callback handler
|
return 1; // The event was consumed by the callback handler
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user