mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Make palette changes use "best match" colours too.
[originally from svn r5695]
This commit is contained in:
parent
62cdb81e0a
commit
7b72634c27
@ -1352,7 +1352,7 @@ static void real_palette_set(struct gui_data *inst, int n, int r, int g, int b)
|
||||
|
||||
gdk_colormap_free_colors(inst->colmap, inst->cols + n, 1);
|
||||
gdk_colormap_alloc_colors(inst->colmap, inst->cols + n, 1,
|
||||
FALSE, FALSE, success);
|
||||
FALSE, TRUE, success);
|
||||
if (!success[0])
|
||||
g_error("%s: couldn't allocate colour %d (#%02x%02x%02x)\n", appname,
|
||||
n, r, g, b);
|
||||
|
Loading…
Reference in New Issue
Block a user