From: Ben Harris Date: Wed, 27 Apr 2005 20:30:47 +0000 (+0000) Subject: Make palette changes use "best match" colours too. X-Git-Tag: r8855-g4f798d~585 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=1d639d731fc47c5857e84462f28b5e01bec8bede;p=PuTTY_svn.git Make palette changes use "best match" colours too. git-svn-id: http://svn.tartarus.org/sgt/putty@5695 cda61777-01e9-0310-a592-d414129be87e --- 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);