Ask GDK to give us reasonable approximations if it can't get precisely the
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Mon, 25 Apr 2005 22:46:08 +0000 (22:46 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
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.

git-svn-id: svn://svn.tartarus.org/sgt/putty@5677 cda61777-01e9-0310-a592-d414129be87e

unix/gtkwin.c

index 2f4943d..d6734f4 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",