From 259cf6bcbb84dd3a803e0a5faea6b1200fad2c96 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Tue, 30 Oct 2001 17:28:03 +0000 Subject: [PATCH] (x_after_update_window_line): Don't run the code clearing in borders for rows whose visible height is 0. --- src/ChangeLog | 3 +++ src/xterm.c | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 24e2c1bfc95..c159e930913 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2001-10-30 Gerd Moellmann + * xterm.c (x_after_update_window_line): Don't run the code + clearing in borders for rows whose visible height is 0. + * xdisp.c (clear_garbaged_frames): Redraw the frame only if its resized_p flag is set. If not set, use the much less flickering method previously used. diff --git a/src/xterm.c b/src/xterm.c index 60b46bc3d12..706ca1463b9 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -770,7 +770,7 @@ x_after_update_window_line (desired_row) { struct window *w = updated_window; struct frame *f; - int width; + int width, height; xassert (w); @@ -791,9 +791,10 @@ x_after_update_window_line (desired_row) && desired_row->full_width_p && (f = XFRAME (w->frame), width = FRAME_INTERNAL_BORDER_WIDTH (f), - width != 0)) + width != 0) + && (height = desired_row->visible_height, + height > 0)) { - int height = desired_row->visible_height; int y = WINDOW_TO_FRAME_PIXEL_Y (w, max (0, desired_row->y)); /* Internal border is drawn below the tool bar. */ -- 2.39.2