afegit default per a fullscreen

This commit is contained in:
2025-12-19 17:26:20 +01:00
parent 6f4eb9c1fc
commit b4b76ed6e8
2 changed files with 2 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ constexpr int MIN_HEIGHT = 240;
constexpr float BASE_ZOOM = 1.0F; // 640x480 baseline constexpr float BASE_ZOOM = 1.0F; // 640x480 baseline
constexpr float MIN_ZOOM = 0.5F; // 320x240 minimum constexpr float MIN_ZOOM = 0.5F; // 320x240 minimum
constexpr float ZOOM_INCREMENT = 0.1F; // 10% steps (F1/F2) constexpr float ZOOM_INCREMENT = 0.1F; // 10% steps (F1/F2)
constexpr bool FULLSCREEN = true; // Pantalla completa activadapor defecto
} // namespace Window } // namespace Window
// Dimensions base del joc (coordenades lògiques) // Dimensions base del joc (coordenades lògiques)

View File

@@ -189,7 +189,7 @@ void init() {
// Window // Window
window.width = Defaults::Window::WIDTH; window.width = Defaults::Window::WIDTH;
window.height = Defaults::Window::HEIGHT; window.height = Defaults::Window::HEIGHT;
window.fullscreen = false; window.fullscreen = Defaults::Window::FULLSCREEN;
window.zoom_factor = Defaults::Window::BASE_ZOOM; window.zoom_factor = Defaults::Window::BASE_ZOOM;
// Physics // Physics