From 7dff77fccf15201c4334405cf9b55e91ba725313 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 14 Oct 2002 22:14:54 +0000 Subject: [PATCH] Set up the palette _before_ trying to paint the window black. [originally from svn r2051] --- unix/pterm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/unix/pterm.c b/unix/pterm.c index 77743edf..9258b613 100644 --- a/unix/pterm.c +++ b/unix/pterm.c @@ -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; }