Skip to content

Commit

Permalink
Reverted commit b69d3d5 : can_change_color() can lie to us (tell us c…
Browse files Browse the repository at this point in the history
…olors are changeable when they aren't). Best to just use the existing palette.
  • Loading branch information
Bill-Gray committed Mar 11, 2024
1 parent b2a074d commit ff27683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion findorb.cpp
Expand Up @@ -3006,7 +3006,7 @@ static int find_rgb( const int irgb)
if( COLORS <= 8 || force_eight_color_mode)
return( (rgb0[0] > 127 ? 1 : 0) | (rgb0[1] > 127 ? 2 : 0)
| (rgb0[2] > 127 ? 4 : 0));
if( COLORS >= 256 && !can_change_color( ))
if( COLORS >= 256)
{
if( rgb0[0] == rgb0[1] && rgb0[0] == rgb0[2] /* gray-scale */
&& rgb0[0] > 4 && rgb0[0] < 247)
Expand Down

0 comments on commit ff27683

Please sign in to comment.