From 318913822dad129fe22662b8c226c413ecd32269 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 25 Apr 2005 22:46:08 +0000 Subject: [PATCH] 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. [originally from svn r5677] --- unix/gtkwin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",