1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

Set up the palette _before_ trying to paint the window black.

[originally from svn r2051]
This commit is contained in:
Simon Tatham 2002-10-14 22:14:54 +00:00
parent 1d65d8ae5f
commit 7dff77fccf

View File

@ -195,6 +195,11 @@ gint configure_area(GtkWidget *widget, GdkEventConfigure *event, gpointer data)
struct gui_data *inst = (struct gui_data *)data;
int w, h, need_size = 0;
/*
* Set up the colour map.
*/
palette_reset();
w = (event->width - 2*cfg.window_border) / inst->font_width;
h = (event->height - 2*cfg.window_border) / inst->font_height;
@ -228,11 +233,6 @@ gint configure_area(GtkWidget *widget, GdkEventConfigure *event, gpointer data)
term_size(h, w, cfg.savelines);
}
/*
* Set up the colour map.
*/
palette_reset();
return TRUE;
}