Correcciones en el botón de servicio

This commit is contained in:
2024-09-15 15:27:12 +02:00
parent 41e57064cb
commit 333c905b1a
21 changed files with 224 additions and 105 deletions

View File

@@ -60,7 +60,7 @@ private:
Texture *textTexture; // Textura para la fuente de las notificaciones
Texture *iconTexture; // Textura para los iconos de las notificaciones
Text *text; // Objeto para dibujar texto
options_t *options; // Variable con todas las opciones del programa
options_t *options; // Opciones del programa
// Variables
color_t bgColor; // Color de fondo de las notificaciones
@@ -81,7 +81,7 @@ public:
// Destructor
~Notify();
// Dibuja las notificaciones por pantalla
void render();

View File

@@ -7,6 +7,7 @@
#include "jshader.h"
#endif
#include "dbgtxt.h"
#include "../service.h"
// Constructor
Screen::Screen(SDL_Window *window, SDL_Renderer *renderer, Asset *asset, Input *input, options_t *options)
@@ -142,7 +143,7 @@ void Screen::setVideoMode(int videoMode)
{
#ifdef ARCADE
videoMode = SCREEN_VIDEO_MODE_WINDOW;
//videoMode = SCREEN_VIDEO_MODE_FULLSCREEN;
// videoMode = SCREEN_VIDEO_MODE_FULLSCREEN;
#endif
// Si está activo el modo ventana quita el borde
@@ -350,6 +351,12 @@ void Screen::checkInput()
{
showInfo = !showInfo;
}
// Comprueba el botón de SERVICE
if (checkServiceButton(input) == SERVICE_SHADERS)
{
switchShaders();
}
}
// Agita la pantalla

View File

@@ -24,7 +24,7 @@ private:
Input *input; // Objeto para leer las entradas de teclado o mando
Notify *notify; // Pinta notificaciones en pantalla
SDL_Texture *gameCanvas; // Textura para completar la ventana de juego hasta la pantalla completa
options_t *options; // Variable con todas las opciones del programa
options_t *options; // Opciones del programa
// Variables
int windowWidth; // Ancho de la pantalla o ventana