Optimizado el renderizado de notificaciones

This commit is contained in:
2022-11-18 19:26:31 +01:00
parent 74d5bbddaa
commit ea994bcc2f
6 changed files with 42 additions and 40 deletions

View File

@@ -380,11 +380,9 @@ bool checkCollision(SDL_Point &p, d_line_t &l)
}
// Devuelve un color_t a partir de un string
color_t stringToColor(std::string str)
color_t stringToColor(palette_e pal, std::string str)
{
const std::string palette = "spectrum";
if (palette == "spectrum")
if (pal == p_zxspectrum)
{
if (str == "black")
{
@@ -467,7 +465,7 @@ color_t stringToColor(std::string str)
}
}
else
else if (pal == p_zxarne)
{ // zxarne
if (str == "black")
{