Ja funciona la roda de paletes

This commit is contained in:
2025-03-06 11:45:06 +01:00
parent 10debde847
commit 60c926a9c9
3 changed files with 29 additions and 4 deletions

View File

@@ -27,7 +27,6 @@ namespace globalInputs
// Cambia la paleta de colores
void switchPalette()
{
//options.video.palette = options.video.palette == Palette::ZXSPECTRUM ? Palette::ZXARNE : Palette::ZXSPECTRUM;
Screen::get()->nextPalette();
}
@@ -102,7 +101,7 @@ namespace globalInputs
else if (Input::get()->checkInput(InputAction::TOGGLE_PALETTE, REPEAT_FALSE))
{
switchPalette();
//Notifier::get()->show({"PALETTE " + std::string(options.video.palette == Palette::ZXSPECTRUM ? "ZX SPECTRUM" : "ZX ARNE")}, NotificationText::CENTER);
Notifier::get()->show({"PALETTE " + options.video.palette}, NotificationText::CENTER);
}
}
}