mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 09:12:24 +00:00
Set up the palette _before_ trying to paint the window black.
[originally from svn r2051]
This commit is contained in:
parent
1d65d8ae5f
commit
7dff77fccf
10
unix/pterm.c
10
unix/pterm.c
@ -195,6 +195,11 @@ gint configure_area(GtkWidget *widget, GdkEventConfigure *event, gpointer data)
|
|||||||
struct gui_data *inst = (struct gui_data *)data;
|
struct gui_data *inst = (struct gui_data *)data;
|
||||||
int w, h, need_size = 0;
|
int w, h, need_size = 0;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Set up the colour map.
|
||||||
|
*/
|
||||||
|
palette_reset();
|
||||||
|
|
||||||
w = (event->width - 2*cfg.window_border) / inst->font_width;
|
w = (event->width - 2*cfg.window_border) / inst->font_width;
|
||||||
h = (event->height - 2*cfg.window_border) / inst->font_height;
|
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);
|
term_size(h, w, cfg.savelines);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Set up the colour map.
|
|
||||||
*/
|
|
||||||
palette_reset();
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user