From ff2768328a515dc274bc7ae5867e9a46cdb64413 Mon Sep 17 00:00:00 2001 From: Bill-Gray Date: Mon, 11 Mar 2024 13:27:07 -0400 Subject: [PATCH] Reverted commit b69d3d577d8e1e1e5a96cf35ec739f : can_change_color() can lie to us (tell us colors are changeable when they aren't). Best to just use the existing palette. --- findorb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/findorb.cpp b/findorb.cpp index ebbe6b1f..b501e29e 100644 --- a/findorb.cpp +++ b/findorb.cpp @@ -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)