From 768f380d81dbce486fd4801cb4748fecb67f3aa1 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 20 May 2014 20:24:19 +0100 Subject: Fix rgb check. It was doing the same check on green twice, and not checking blue. --- atari/plot/plot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'atari/plot') diff --git a/atari/plot/plot.c b/atari/plot/plot.c index 2c75db335..e29347f02 100755 --- a/atari/plot/plot.c +++ b/atari/plot/plot.c @@ -635,7 +635,7 @@ inline short rgb_to_666_index(unsigned char r, unsigned char g, unsigned char b) diff_b = abs(r-b); diff_c = abs(r-b); if( diff_a < 2 && diff_b < 2 && diff_c < 2 ) { - if( (r!=0XFF) && (g!=0XFF) && (g!=0XFF) ) { + if( (r!=0XFF) && (g!=0XFF) && (b!=0XFF) ) { if( ((r&0xF0)>>4) != 0 ) //printf("conv gray: %x -> %d\n", ((r&0xF0)>>4) , (OFFSET_CUST_PAL) + ((r&0xF0)>>4) ); return( (OFFSET_CUST_PAL - OFFSET_WEB_PAL) + ((r&0xF0)>>4) ); -- cgit v1.2.3