Use SDL_SetWindowFillDocument on Emscripten to fill browser window

This commit is contained in:
ROllerozxa 2026-06-18 00:05:25 +02:00
commit 8dccfb17a4
2 changed files with 2 additions and 3 deletions

View file

@ -16,9 +16,6 @@ canvas {
display: block;
margin: auto;
position: absolute;
top: 0; bottom: 0; left: 0; right: 0;
width: 100%;
height: 100%;
}
</style>
</head>

View file

@ -332,6 +332,8 @@ tbackend_init_surface()
exit(1);
}
SDL_SetWindowFillDocument(_window, true);
_tms._window = _window;
#ifdef TMS_BACKEND_ANDROID