From d094196b7dc5fdc59328b546fd02f8be19cfe2a9 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Thu, 8 Aug 2002 05:38:35 +0000 Subject: rewrite. * src/vte.c(vte_terminal_invalidate_all): rewrite. --- ChangeLog | 2 ++ src/vte.c | 11 ++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 973ea5b..2569bcd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,5 @@ +2002-08-08 nalin + * src/vte.c(vte_terminal_invalidate_all): rewrite. 2002-08-08 nalin * src/vte.c(vte_terminal_paint,vte_terminal_draw_cells): fill in the background color when drawing the cursor, even if it's going to end up diff --git a/src/vte.c b/src/vte.c index d75e5e9..e69ccf2 100644 --- a/src/vte.c +++ b/src/vte.c @@ -541,7 +541,7 @@ vte_invalidate_cells(VteTerminal *terminal, static void vte_invalidate_all(VteTerminal *terminal) { - GdkRectangle *rect; + GdkRectangle rect; GtkWidget *widget; g_return_if_fail(VTE_IS_TERMINAL(terminal)); if (!GTK_IS_WIDGET(terminal)) { @@ -551,8 +551,13 @@ vte_invalidate_all(VteTerminal *terminal) if (!GTK_WIDGET_REALIZED(widget)) { return; } - rect = &widget->allocation; - gdk_window_invalidate_rect((GTK_WIDGET(terminal))->window, rect, TRUE); + rect.x = 0; + rect.y = 0; + rect.width = terminal->column_count * terminal->char_width + + 2 * VTE_PAD_WIDTH; + rect.height = terminal->row_count * terminal->char_height + + 2 * VTE_PAD_WIDTH; + gdk_window_invalidate_rect((GTK_WIDGET(terminal))->window, &rect, TRUE); } /* Scroll a rectangular region up or down by a fixed number of lines. */ -- cgit v1.2.3