mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
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]
This commit is contained in:
parent
4cb79827c6
commit
318913822d
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user