From e0b0b41a76483233eece053045303b0bc9d90006 Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Mon, 8 Mar 2010 23:38:50 +0000 Subject: [PATCH] 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 --- src/palette.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/palette.c b/src/palette.c index e011048b..a4fe9c04 100644 --- a/src/palette.c +++ b/src/palette.c @@ -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);