Actualizando las clases comunes a sus ultimas versiones

This commit is contained in:
2022-12-05 09:13:04 +01:00
parent cdb5040b9d
commit 09a205a288
12 changed files with 506 additions and 275 deletions

View File

@@ -426,7 +426,7 @@ void Title::update()
case 6: // Display mode
switchFullScreenModeVar();
if (options->fullScreenMode != 0)
if (options->videoMode != 0)
{
menu.options->setSelectable(8, false);
menu.options->setGreyed(8, true);
@@ -742,20 +742,20 @@ void Title::updateBG()
// Cambia el valor de la variable de modo de pantalla completa
void Title::switchFullScreenModeVar()
{
switch (options->fullScreenMode)
switch (options->videoMode)
{
case 0:
options->fullScreenMode = SDL_WINDOW_FULLSCREEN;
options->videoMode = SDL_WINDOW_FULLSCREEN;
break;
case SDL_WINDOW_FULLSCREEN:
options->fullScreenMode = SDL_WINDOW_FULLSCREEN_DESKTOP;
options->videoMode = SDL_WINDOW_FULLSCREEN_DESKTOP;
break;
case SDL_WINDOW_FULLSCREEN_DESKTOP:
options->fullScreenMode = 0;
options->videoMode = 0;
break;
default:
options->fullScreenMode = 0;
options->videoMode = 0;
break;
}
}
@@ -869,7 +869,7 @@ void Title::updateMenuLabels()
i++;
// DISPLAY MODE - OPTIONS
switch (options->fullScreenMode)
switch (options->videoMode)
{
case 0:
menu.options->setItemCaption(i, lang->getText(4)); // WINDOW
@@ -945,7 +945,7 @@ void Title::updateMenuLabels()
// Aplica las opciones de menu seleccionadas
void Title::applyOptions()
{
screen->setVideoMode(options->fullScreenMode);
screen->setVideoMode(options->videoMode);
lang->setLang(options->language);