window: max_zoom derivat del display via Screen::detectMaxZoom()

This commit is contained in:
2026-05-17 17:46:49 +02:00
parent 7006207b7e
commit 659e37e5a1
4 changed files with 49 additions and 6 deletions
+4
View File
@@ -269,6 +269,10 @@ auto Director::initSDL() -> bool {
// Inicia el generador de numeros aleatorios
std::srand(static_cast<unsigned int>(SDL_GetTicks()));
// Calcula el zoom màxim windowed segons el display actual i clampa
// `Options::window.zoom` abans de crear la finestra.
Screen::detectMaxZoom();
// Crea la ventana
window_ = SDL_CreateWindow(
Options::window.caption.c_str(),