Eliminat el punter a "section"

This commit is contained in:
2024-09-28 09:28:22 +02:00
parent 0a8d0479a0
commit 8d263931b2
19 changed files with 191 additions and 172 deletions

View File

@@ -1,14 +1,14 @@
#include "define_buttons.h"
#include "param.h"
#include "options.h"
#include "section.h"
// Constructor
DefineButtons::DefineButtons(Input *input, Text *text, section_t *section)
DefineButtons::DefineButtons(Input *input, Text *text)
{
// Copia punteros a los objetos
this->input = input;
this->text = text;
this->section = section;
// Inicializa variables
enabled = false;
@@ -112,7 +112,8 @@ void DefineButtons::checkInput()
// Evento de salida de la aplicación
if (event.type == SDL_QUIT)
{
section->name = SECTION_PROG_QUIT;
section::name = section::NAME_QUIT;
section::options = section::OPTIONS_QUIT_NORMAL;
break;
}