Fix stupid bug. No one noticed yet :p
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1267 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
6a69fa2b79
commit
97ca0c65e3
@ -2610,7 +2610,7 @@ byte Best_color_nonexcluded(byte red,byte green,byte blue)
|
|||||||
delta_g=(int)Main_palette[col].G-green;
|
delta_g=(int)Main_palette[col].G-green;
|
||||||
delta_b=(int)Main_palette[col].B-blue;
|
delta_b=(int)Main_palette[col].B-blue;
|
||||||
|
|
||||||
if(delta_r == delta_g == delta_b) return col;
|
if(delta_r == delta_g && delta_g == delta_b) return col;
|
||||||
|
|
||||||
rmean = ( Main_palette[col].R + red ) / 2;
|
rmean = ( Main_palette[col].R + red ) / 2;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user