Intentando salir del modo demo con cualquier tecla

This commit is contained in:
2022-10-24 14:10:15 +02:00
parent 22c4724125
commit 2cbe16dcba

View File

@@ -70,10 +70,6 @@ void Demo::checkEventHandler()
{
switch (eventHandler->key.keysym.scancode)
{
case SDL_SCANCODE_ESCAPE:
section.name = SECTION_PROG_TITLE;
break;
case SDL_SCANCODE_B:
screen->switchBorder();
reLoadTextures();
@@ -105,6 +101,7 @@ void Demo::checkEventHandler()
break;
default:
section.name == SECTION_PROG_TITLE;
break;
}
}
@@ -158,6 +155,7 @@ void Demo::render()
screen->renderFX();
//text->write(0, 0, std::to_string(counter));
text->write(0, 0, std::to_string(section.name));
// Actualiza la pantalla
screen->blit();