amagat el cursor d'inici en mode finestra

This commit is contained in:
2025-12-16 22:47:12 +01:00
parent bc5982b286
commit 886ec8ab1d
6 changed files with 52 additions and 5 deletions

View File

@@ -141,6 +141,12 @@ SDLManager::SDLManager(int width, int height, bool fullscreen)
// Configurar viewport scaling
updateLogicalPresentation();
// Inicialitzar sistema de cursor
// En fullscreen: forzar ocultació permanent
if (is_fullscreen_) {
Mouse::setForceHidden(true);
}
std::cout << "SDL3 inicialitzat: " << current_width_ << "x" << current_height_
<< " (logic: " << Defaults::Game::WIDTH << "x"
<< Defaults::Game::HEIGHT << ")";
@@ -148,9 +154,6 @@ SDLManager::SDLManager(int width, int height, bool fullscreen)
std::cout << " [FULLSCREEN]";
}
std::cout << std::endl;
// Inicialitzar mòdul Mouse amb l'estat actual de fullscreen
Mouse::setForceHidden(is_fullscreen_);
}
SDLManager::~SDLManager() {