Fix a bug from r1369: In Palette Invert, when the rangehad an even number of colors, the colors in the middle would not be swapped

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1377 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2010-03-08 23:38:50 +00:00
parent b1a5103562
commit e0b0b41a76

View File

@ -1830,7 +1830,7 @@ void Button_Palette(void)
for (i=0; i<=255; i++)
conversion_table[i]=i;
// Inversion
for (i=block_start; i< block_start + (block_end-block_start)/2;i++)
for (i=block_start; i < block_start + (block_end-block_start+1)/2;i++)
{
temp_color=block_end-(i-block_start);