Fix an issue (probably old) where Color reduce would not pick the right colors if an X-Invert had been used.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1369 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
e423b5fb92
commit
22f05f5052
11
palette.c
11
palette.c
@ -1832,12 +1832,17 @@ void Button_Palette(void)
|
||||
for (i=0; i<=255; i++)
|
||||
conversion_table[i]=i;
|
||||
// Inversion
|
||||
for (i=block_start;i<=block_end;i++)
|
||||
for (i=block_start; i< block_start + (block_end-block_start)/2;i++)
|
||||
{
|
||||
temp_color=block_end-(i-block_start);
|
||||
Set_red(i,backup_palette[temp_color].R,working_palette);
|
||||
|
||||
Set_red (i,backup_palette[temp_color].R,working_palette);
|
||||
Set_green (i,backup_palette[temp_color].G,working_palette);
|
||||
Set_blue (i,backup_palette[temp_color].B,working_palette);
|
||||
Set_blue (i,backup_palette[temp_color].B,working_palette);
|
||||
Set_red (temp_color,backup_palette[i].R,working_palette);
|
||||
Set_green (temp_color,backup_palette[i].G,working_palette);
|
||||
Set_blue (temp_color,backup_palette[i].B,working_palette);
|
||||
|
||||
if (clicked_button==21)
|
||||
{
|
||||
conversion_table[i]=temp_color;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user