From: ben Date: Mon, 25 Apr 2005 22:46:08 +0000 (+0000) Subject: Ask GDK to give us reasonable approximations if it can't get precisely the X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/35914df1ad94cf128cd0cd7fb8c5848b8ba156fc Ask GDK to give us reasonable approximations if it can't get precisely the 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 --- diff --git a/unix/gtkwin.c b/unix/gtkwin.c index 2f4943d8..d6734f4c 100644 --- a/unix/gtkwin.c +++ b/unix/gtkwin.c @@ -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",