From 95f19c0cd8ff690bf3877954aa464ae8bdd480f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Thu, 13 Jun 2024 22:51:27 +0200 Subject: [PATCH] =?UTF-8?q?Corregido=20error=20cargando=20la=20configuraci?= =?UTF-8?q?=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/const.h | 2 +- source/director.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/const.h b/source/const.h index cbd8d50..14016c7 100644 --- a/source/const.h +++ b/source/const.h @@ -22,7 +22,7 @@ const int SCOREBOARD_Y = GAMECANVAS_HEIGHT - SCOREBOARD_HEIGHT; // Zona de juego const SDL_Rect windowArea = {0, 0, GAMECANVAS_WIDTH, GAMECANVAS_HEIGHT}; -const SDL_Rect playArea = {10, 10, GAMECANVAS_WIDTH - 20, GAMECANVAS_HEIGHT - SCOREBOARD_HEIGHT - 20}; +const SDL_Rect playArea = {0, 0, GAMECANVAS_WIDTH, GAMECANVAS_HEIGHT - SCOREBOARD_HEIGHT}; const int PLAY_AREA_TOP = 0; const int PLAY_AREA_BOTTOM = playArea.h; const int PLAY_AREA_LEFT = 0; diff --git a/source/director.cpp b/source/director.cpp index b109422..8188597 100644 --- a/source/director.cpp +++ b/source/director.cpp @@ -579,12 +579,12 @@ bool Director::saveConfigFile() else if (options->video.mode == SDL_WINDOW_FULLSCREEN) { - file << "fullScreenMode=SDL_WINDOW_FULLSCREEN\n"; + file << "mode=SDL_WINDOW_FULLSCREEN\n"; } else if (options->video.mode == SDL_WINDOW_FULLSCREEN_DESKTOP) { - file << "fullScreenMode=SDL_WINDOW_FULLSCREEN_DESKTOP\n"; + file << "mode=SDL_WINDOW_FULLSCREEN_DESKTOP\n"; } file << "window.size=" + std::to_string(options->video.window.size) + "\n";