Patch level :2.1 042
Files correlati :gestore immagini Ricompilazione Demo : [ ] Commento :eliminato arrotondamento ad 8 nel caso di ridefinizione colori (preistorico) git-svn-id: svn://10.65.10.50/trunk@12074 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
e007d5e048
commit
036922ec70
@ -284,7 +284,7 @@ void TImage::convert_transparent_color(COLOR transparent)
|
|||||||
for (short y = 0; y < dy; y++) for (short x = 0; x < dx; x++)
|
for (short y = 0; y < dy; y++) for (short x = 0; x < dx; x++)
|
||||||
{
|
{
|
||||||
const COLOR c = get_pixel(x, y);
|
const COLOR c = get_pixel(x, y);
|
||||||
if (color_distance(c, trans) < 8)
|
if ((c & 0x00FFFFFF) == trans)
|
||||||
set_pixel(x, y, transparent);
|
set_pixel(x, y, transparent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user