Arreglado el color del marcador al cambiar de paleta

This commit is contained in:
2022-11-02 17:25:42 +01:00
parent c3a82b938f
commit 5302e16064
10 changed files with 130 additions and 81 deletions

View File

@@ -575,4 +575,14 @@ std::string boolToString(bool value)
{
return "false";
}
}
// Compara dos colores
bool colorAreEqual(color_t color1, color_t color2)
{
const bool r = color1.r == color2.r;
const bool g = color1.g == color2.g;
const bool b = color1.b == color2.b;
return (r && g && b);
}