Arreglado tamaño de las notificaciones en pantalla completa
This commit is contained in:
@@ -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);
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
//}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user