CPC_compare_colors()

used in Save_SCR()
This commit is contained in:
Thomas Bernard
2018-11-26 16:20:07 +01:00
parent 40bd0fc1c7
commit 4b57acf1af
3 changed files with 28 additions and 1 deletions

View File

@@ -4213,7 +4213,7 @@ void Save_SCR(T_IO_Context * context)
// search for the color in the HW palette (0x40-0x5F)
byte index = 0x40;
while ((index < 0x60) &&
(0 != memcmp(context->Palette + i, context->Palette + index, sizeof(T_Components))))
!CPC_compare_colors(context->Palette + i, context->Palette + index))
index++;
if (index >= 0x60)
{