Fix modgui after latest changes, correct full screen behaviour
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
7c67f50d4d
commit
3022008706
5 changed files with 27 additions and 10 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue