From 2cbe16dcbaa8e55a302b1f68ee493411e1e30713 Mon Sep 17 00:00:00 2001 From: Sergio Valor Martinez Date: Mon, 24 Oct 2022 14:10:15 +0200 Subject: [PATCH] Intentando salir del modo demo con cualquier tecla --- source/demo.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/demo.cpp b/source/demo.cpp index 3c91ea3..cee3cdb 100644 --- a/source/demo.cpp +++ b/source/demo.cpp @@ -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();