mirror of
https://github.com/Bithack/principia.git
synced 2026-06-24 02:04:08 +00:00
Use SDL_SetWindowFillDocument on Emscripten to fill browser window
This commit is contained in:
parent
c07486f02f
commit
8dccfb17a4
2 changed files with 2 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -332,6 +332,8 @@ tbackend_init_surface()
|
|||
exit(1);
|
||||
}
|
||||
|
||||
SDL_SetWindowFillDocument(_window, true);
|
||||
|
||||
_tms._window = _window;
|
||||
|
||||
#ifdef TMS_BACKEND_ANDROID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue