Fix modgui after latest changes, correct full screen behaviour

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2023-07-08 16:29:55 +02:00
parent 7c67f50d4d
commit 3022008706
5 changed files with 27 additions and 10 deletions

View file

@ -805,9 +805,15 @@ int Window::getMods() {
void Window::setFullScreen(bool fullScreen) {
#ifdef DISTRHO_OS_WASM
if (fullScreen)
emscripten_request_fullscreen(internal->tlw->getWindow().getApp().getClassName(), false);
{
try {
emscripten_request_fullscreen(internal->tlw->getWindow().getApp().getClassName(), false);
} DISTRHO_SAFE_EXCEPTION("fullscreen");
}
else
{
emscripten_exit_fullscreen();
}
#endif
}