Palette sorting works

-still slow
-seems there is a bug in the HSL calculation for green and blue, they get sorted incorrectly
-maybe the new S parameter should be used in clustersets, because now we are not differenciating grey from red !! maybe it's done elsewhere, we'll have to check.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@291 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2008-10-20 18:14:10 +00:00
parent fc41bbe89d
commit e31b88ceed
3 changed files with 15 additions and 17 deletions

2
op_c.h
View File

@@ -147,7 +147,7 @@ void TC_Delete(Table_conversion * t);
byte TC_Get(Table_conversion * t,int r,int v,int b);
void TC_Set(Table_conversion * t,int r,int v,int b,byte i);
void rgb2hl(int r, int v,int b, byte* h, byte*l);
void rgb2hl(int r, int v,int b, byte* h, byte*l, byte* s);
/////////////////////////////////////////////////////////////////////////////