Arreglado un bug en el cambio de paleta durante el juego

This commit is contained in:
2022-10-27 19:24:41 +02:00
parent 1934f790f7
commit c1f0f90b16
6 changed files with 46 additions and 13 deletions

View File

@@ -232,12 +232,16 @@ void Title::reLoadTextures()
// Carga la textura adecuada
if (options->palette == p_zxspectrum)
{
texture->loadFromFile(asset->get("loading_screen_color.png"), renderer);
// texture->loadFromFile(asset->get("loading_screen_color.png"), renderer);
texture = resource->getTexture("loading_screen_color.png");
}
else if (options->palette == p_zxarne)
{
texture->loadFromFile(asset->get("loading_screen_color_zxarne.png"), renderer);
// texture->loadFromFile(asset->get("loading_screen_color_zxarne.png"), renderer);
texture = resource->getTexture("loading_screen_color_zxarne.png");
}
texture->reLoad();
}
// Cambia la paleta