Arreglado tamaño de las notificaciones en pantalla completa

This commit is contained in:
2022-11-23 20:33:54 +01:00
parent ea5360ea74
commit 7070dac482
5 changed files with 8 additions and 11 deletions

View File

@@ -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);
}

View File

@@ -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;

View File

@@ -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

View File

@@ -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;
//}
}

View File

@@ -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