From 7b72634c27ebee551b0a480c544025bf3145c3f7 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 27 Apr 2005 20:30:47 +0000 Subject: [PATCH] Make palette changes use "best match" colours too. [originally from svn r5695] --- unix/gtkwin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/gtkwin.c b/unix/gtkwin.c index d6734f4c..9838250f 100644 --- a/unix/gtkwin.c +++ b/unix/gtkwin.c @@ -1352,7 +1352,7 @@ static void real_palette_set(struct gui_data *inst, int n, int r, int g, int b) gdk_colormap_free_colors(inst->colmap, inst->cols + n, 1); gdk_colormap_alloc_colors(inst->colmap, inst->cols + n, 1, - FALSE, FALSE, success); + FALSE, TRUE, success); if (!success[0]) g_error("%s: couldn't allocate colour %d (#%02x%02x%02x)\n", appname, n, r, g, b);