Add custom HTML shell template to Web export

This commit is contained in:
Wojtek Figat
2026-03-16 22:09:21 +01:00
parent 0f5c5dcf3e
commit e10d784e83
6 changed files with 152 additions and 4 deletions

View File

@@ -135,6 +135,11 @@ SDLWindow::SDLWindow(const CreateWindowSettings& settings)
if (_settings.Parent != nullptr && (_settings.Type != WindowType::Tooltip && _settings.Type != WindowType::Popup))
_settings.Parent = nullptr;
#endif
#if PLATFORM_WEB
// Control canvas size
// TODO: try using SDL_SetWindowFillDocument (min SDL 3.4)
flags |= SDL_WINDOW_RESIZABLE;
#endif
// The window position needs to be relative to the parent window
Int2 relativePosition(Math::TruncToInt(settings.Position.X), Math::TruncToInt(settings.Position.Y));