mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-20 15:51:07 +01:00
emscripten: set window->w and ->h when creating with external css sizing.
Fixes #14711.
This commit is contained in:
@@ -604,6 +604,8 @@ static bool Emscripten_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window,
|
||||
wdata->external_size = SDL_floor(css_w) != 1 || SDL_floor(css_h) != 1;
|
||||
if (wdata->external_size) {
|
||||
fill_document = false; // can't be resizable if something else is controlling it.
|
||||
window->w = (int) css_w;
|
||||
window->h = (int) css_h;
|
||||
}
|
||||
|
||||
wdata->window = window;
|
||||
|
||||
Reference in New Issue
Block a user