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

@@ -80,6 +80,17 @@ void CPC_set_HW_palette(T_Components * palette);
*/
void CPC_set_default_BASIC_palette(T_Components * palette);
/**
* compare two RGB colors
*
* The RGB colors are compared in order as if they were
* converted from CPC (27 color palette), as there are several
* mapping of the 3 level CPC RGB signals.
*
* @return true if the RGB colors map to the same CPC color
*/
int CPC_compare_colors(T_Components * col1, T_Components * col2);
/**
* Check AMSDOS header
*