renpy / renpy-build

Build system for the Ren'Py visual novel engine. (The engine itself, not games.)
76 stars 51 forks source link

Fix fullscreen web #77

Closed Kassy2048 closed 1 year ago

Kassy2048 commented 1 year ago

This PR fixes the switch to fullscreen mode which does not happen immediately on Web. The related emscripten functions are re-implemented in "renpy-pre.js" with the following changes:

Browsers that don't implement navigator.userActivation.isActive (all but Firefox) do implement requestFullScreen (all but Safari on iOS) so that should cover all recent browsers.

This PR and a related one in renpy should fix the issues in renpy/renpy#4760.