changeset 57373:38e45bf0128a

(x_update_window_end): Fix flicker on vertical line between windows. Update vertical line after drawing window fringes, but only if actually drawing any bitmaps--or there is no fringe.
author Kim F. Storm <storm@cua.dk>
date Thu, 07 Oct 2004 21:59:39 +0000
parents 1caa36568da6
children 384212f1e3a5
files src/macterm.c src/w32term.c src/xterm.c
diffstat 3 files changed, 10 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/src/macterm.c	Thu Oct 07 21:58:16 2004 +0000
+++ b/src/macterm.c	Thu Oct 07 21:59:39 2004 +0000
@@ -1291,9 +1291,8 @@
 				output_cursor.vpos,
 				output_cursor.x, output_cursor.y);
 
-      x_draw_vertical_border (w);
-
-      draw_window_fringes (w);
+      if (draw_window_fringes (w, 1))
+	x_draw_vertical_border (w);
 
       UNBLOCK_INPUT;
     }
@@ -5050,7 +5049,7 @@
   GetWindowBounds (FRAME_MAC_WINDOW (f), kWindowStructureRgn, outer);
 #else /* not TARGET_API_MAC_CARBON */
   RgnHandle region = NewRgn ();
-    
+
   GetWindowRegion (FRAME_MAC_WINDOW (f), kWindowContentRgn, region);
   *inner = (*region)->rgnBBox;
   GetWindowRegion (FRAME_MAC_WINDOW (f), kWindowStructureRgn, region);
@@ -5143,7 +5142,7 @@
   {
     Rect inner, outer, screen_rect, dummy;
     RgnHandle region = NewRgn ();
-    
+
     mac_get_window_bounds (f, &inner, &outer);
     f->x_pixels_diff = inner.left - outer.left;
     f->y_pixels_diff = inner.top - outer.top;
@@ -8114,7 +8113,7 @@
 	switch (GetEventClass (eventRef))
 	  {
 	  case kEventClassWindow:
-	    if (GetEventKind (eventRef) == kEventWindowBoundsChanged) 
+	    if (GetEventKind (eventRef) == kEventWindowBoundsChanged)
 	      {
 		WindowPtr window_ptr;
 		GetEventParameter(eventRef, kEventParamDirectObject,
@@ -8431,7 +8430,7 @@
 
 	    if (!is_emacs_window (window_ptr))
 	      break;
-	    
+
 	    f = mac_window_to_frame (window_ptr);
 
 	    if ((er.modifiers & activeFlag) != 0)
--- a/src/w32term.c	Thu Oct 07 21:58:16 2004 +0000
+++ b/src/w32term.c	Thu Oct 07 21:59:39 2004 +0000
@@ -540,9 +540,8 @@
 				output_cursor.vpos,
 				output_cursor.x, output_cursor.y);
 
-      x_draw_vertical_border (w);
-
-      draw_window_fringes (w);
+      if (draw_window_fringes (w, 1))
+	x_draw_vertical_border (w);
 
       UNBLOCK_INPUT;
     }
--- a/src/xterm.c	Thu Oct 07 21:58:16 2004 +0000
+++ b/src/xterm.c	Thu Oct 07 21:59:39 2004 +0000
@@ -571,9 +571,8 @@
 				output_cursor.vpos,
 				output_cursor.x, output_cursor.y);
 
-      x_draw_vertical_border (w);
-
-      draw_window_fringes (w);
+      if (draw_window_fringes (w, 1))
+	x_draw_vertical_border (w);
 
       UNBLOCK_INPUT;
     }