]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Make palette changes use "best match" colours too.
authorBen Harris <bjh21@bjh21.me.uk>
Wed, 27 Apr 2005 20:30:47 +0000 (20:30 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Wed, 27 Apr 2005 20:30:47 +0000 (20:30 +0000)
[originally from svn r5695]

unix/gtkwin.c

index d6734f4c339833cbf03d8e673447f59538d83df0..9838250fe194041965ad7df92450444e481694f9 100644 (file)
@@ -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);