From 1b0ab972ab711b341830d42af58db0016e1e3686 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Sat, 21 Jun 2025 10:53:50 +0200 Subject: [PATCH] fix: no canviava el tamany de la finestra en fullscreen mode --- source/global_events.cpp | 1 - source/screen.cpp | 3 --- 2 files changed, 4 deletions(-) diff --git a/source/global_events.cpp b/source/global_events.cpp index 892abd7..9be472c 100644 --- a/source/global_events.cpp +++ b/source/global_events.cpp @@ -21,7 +21,6 @@ namespace GlobalEvents break; case SDL_EVENT_WINDOW_RESIZED: - SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "SDL_WINDOWEVENT_SIZE_CHANGED"); break; default: diff --git a/source/screen.cpp b/source/screen.cpp index d31fc64..9a6b7e7 100644 --- a/source/screen.cpp +++ b/source/screen.cpp @@ -280,8 +280,6 @@ void Screen::initShaders() void Screen::adjustWindowSize() { // Establece el nuevo tamaƱo - if (!Options::video.fullscreen) - { const int WIDTH = param.game.width * Options::window.size; const int HEIGHT = param.game.height * Options::window.size; @@ -298,7 +296,6 @@ void Screen::adjustWindowSize() SDL_SetWindowSize(window_, WIDTH, HEIGHT); initShaders(); - } } // Renderiza todos los overlays y efectos