From 7070dac4826fcc9733e9670fd63436ad0858e27c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Wed, 23 Nov 2022 20:33:54 +0100 Subject: [PATCH] =?UTF-8?q?Arreglado=20tama=C3=B1o=20de=20las=20notificaci?= =?UTF-8?q?ones=20en=20pantalla=20completa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/common/screen.cpp | 5 +++++ source/director.cpp | 2 +- source/game.cpp | 2 +- source/logo.cpp | 8 -------- source/title.cpp | 2 +- 5 files changed, 8 insertions(+), 11 deletions(-) diff --git a/source/common/screen.cpp b/source/common/screen.cpp index d38508a..16f0011 100644 --- a/source/common/screen.cpp +++ b/source/common/screen.cpp @@ -370,6 +370,11 @@ void Screen::renderNotifications() SDL_RenderSetLogicalSize(renderer, (windowWidth * 3) / 2, (windowHeight * 3) / 2); } + if (options->videoMode == SDL_WINDOW_FULLSCREEN_DESKTOP) + { + SDL_RenderSetLogicalSize(renderer, windowWidth / 3, windowHeight / 3); + } + notify->render(); SDL_RenderSetLogicalSize(renderer, windowWidth, windowHeight); } \ No newline at end of file diff --git a/source/director.cpp b/source/director.cpp index 0b21269..7dcd0fa 100644 --- a/source/director.cpp +++ b/source/director.cpp @@ -97,7 +97,7 @@ void Director::initOnline() jscore::init(options->online.server, options->online.port); const std::string caption = options->online.jailerID + " IS LOGGED IN"; - screen->showText(caption); + screen->showNotification(caption); if (options->console) { std::cout << caption << std::endl; diff --git a/source/game.cpp b/source/game.cpp index f02f4dc..8574ad5 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -137,7 +137,7 @@ void Game::checkEventHandler() break; case SDL_SCANCODE_F6: - screen->showText("MAMA MIRA! SIN MANOS!"); + screen->showNotification("MAMA MIRA! SIN MANOS!"); break; #endif diff --git a/source/logo.cpp b/source/logo.cpp index 458ed8c..a3fc196 100644 --- a/source/logo.cpp +++ b/source/logo.cpp @@ -319,12 +319,4 @@ void Logo::switchPalette() void Logo::endSection() { section.name = SECTION_PROG_ENTER_ID; - //if (options->online.enabled && options->online.jailerID == "") - //{ - // section.name = SECTION_PROG_ENTER_ID; - //} - //else - //{ - // section.name = (section.subsection == SUBSECTION_LOGO_TO_INTRO) ? SECTION_PROG_INTRO : SECTION_PROG_TITLE; - //} } \ No newline at end of file diff --git a/source/title.cpp b/source/title.cpp index ec15f7d..15b6d85 100644 --- a/source/title.cpp +++ b/source/title.cpp @@ -117,7 +117,7 @@ void Title::checkEventHandler() #ifdef DEBUG case SDL_SCANCODE_F6: - screen->showText("MAMA MIRA! SIN MANOS!"); + screen->showNotification("MAMA MIRA! SIN MANOS!"); break; #endif