diff options
author | Nalin Dahyabhai <nalin@src.gnome.org> | 2002-08-08 05:38:35 +0000 |
---|---|---|
committer | Nalin Dahyabhai <nalin@src.gnome.org> | 2002-08-08 05:38:35 +0000 |
commit | d094196b7dc5fdc59328b546fd02f8be19cfe2a9 (patch) | |
tree | 28e72229153d3395cc2d47fc427e8c44003ccee8 | |
parent | 71d5d3b968eb61c1b26765fe64bc7abac5915ced (diff) |
rewrite.vte_0_7_2
* src/vte.c(vte_terminal_invalidate_all): rewrite.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/vte.c | 11 |
2 files changed, 10 insertions, 3 deletions
@@ -1,4 +1,6 @@ 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 as the default background color, spotted by Peter Jones. Draw the @@ -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. */ |