emscripten: Move fill-document from hint/property to a window flag.
Fixes #14617.
This commit is contained in:
@@ -2497,6 +2497,15 @@ SDL_AppResult SDLTest_CommonEventMainCallbacks(SDLTest_CommonState *state, const
|
||||
}
|
||||
}
|
||||
break;
|
||||
case SDLK_D:
|
||||
if (withControl) {
|
||||
/* Ctrl-D toggle fill-document */
|
||||
SDL_Window *window = SDL_GetWindowFromEvent(event);
|
||||
if (window) {
|
||||
SDL_SetWindowFillDocument(window, !((SDL_GetWindowFlags(window) & SDL_WINDOW_FILL_DOCUMENT) != 0));
|
||||
}
|
||||
}
|
||||
break;
|
||||
case SDLK_P:
|
||||
if (withAlt) {
|
||||
/* Alt-P cycle through progress states */
|
||||
|
||||
Reference in New Issue
Block a user