Cambiando printf a std::cout

This commit is contained in:
2022-10-30 22:23:24 +01:00
parent 995b3516e6
commit 531ac94bc0
7 changed files with 25 additions and 29 deletions

View File

@@ -88,7 +88,7 @@ void Game::checkEventHandler()
screen->setBorderColor(stringToColor(options->palette, "black"));
break;
}
if ((eventHandler->type == SDL_KEYDOWN) and (eventHandler->key.repeat == 0))
{
switch (eventHandler->key.keysym.scancode)
@@ -410,15 +410,10 @@ void Game::reLoadTextures()
// Cambia la paleta
void Game::switchPalette()
{
std::cout << "** PALETTE SWITCH REQUESTED" << std::endl;
// Modifica la variable
if (options->palette == p_zxspectrum)
{
options->palette = p_zxarne;
}
else
{
options->palette = p_zxspectrum;
}
options->palette = (options->palette == p_zxspectrum) ? p_zxarne : p_zxspectrum;
room->reLoadPalette();
player->reLoadPalette();