]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Ask GDK to give us reasonable approximations if it can't get precisely the
authorBen Harris <bjh21@bjh21.me.uk>
Mon, 25 Apr 2005 22:46:08 +0000 (22:46 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Mon, 25 Apr 2005 22:46:08 +0000 (22:46 +0000)
colours we asked it for.  This means that I can run pterm on an 8-bit
PseudoColor display even if I have another program running.

[originally from svn r5677]

unix/gtkwin.c

index 2f4943d823742e5c81508b405107ae6b8875ec39..d6734f4c339833cbf03d8e673447f59538d83df0 100644 (file)
@@ -1419,7 +1419,7 @@ void palette_reset(void *frontend)
     }
 
     gdk_colormap_alloc_colors(inst->colmap, inst->cols, NALLCOLOURS,
-                             FALSE, FALSE, success);
+                             FALSE, TRUE, success);
     for (i = 0; i < NALLCOLOURS; i++) {
        if (!success[i])
            g_error("%s: couldn't allocate colour %d (#%02x%02x%02x)\n",