diff options
| author | Kim F. Storm | 2004-10-07 21:59:39 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-10-07 21:59:39 +0000 |
| commit | f94a2622a049a633a20147d4f15664c4f09996bd (patch) | |
| tree | 30cf2acff3dab20b3d684d220543b4d4c4ec4869 /src | |
| parent | 0a1527d6b5f2c64829fa21b6441f19f419c84886 (diff) | |
| download | emacs-f94a2622a049a633a20147d4f15664c4f09996bd.tar.gz emacs-f94a2622a049a633a20147d4f15664c4f09996bd.zip | |
(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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/macterm.c | 13 | ||||
| -rw-r--r-- | src/w32term.c | 5 | ||||
| -rw-r--r-- | src/xterm.c | 5 |
3 files changed, 10 insertions, 13 deletions
diff --git a/src/macterm.c b/src/macterm.c index 0587c5d15ba..a5e1de9be08 100644 --- a/src/macterm.c +++ b/src/macterm.c | |||
| @@ -1291,9 +1291,8 @@ x_update_window_end (w, cursor_on_p, mouse_face_overwritten_p) | |||
| 1291 | output_cursor.vpos, | 1291 | output_cursor.vpos, |
| 1292 | output_cursor.x, output_cursor.y); | 1292 | output_cursor.x, output_cursor.y); |
| 1293 | 1293 | ||
| 1294 | x_draw_vertical_border (w); | 1294 | if (draw_window_fringes (w, 1)) |
| 1295 | 1295 | x_draw_vertical_border (w); | |
| 1296 | draw_window_fringes (w); | ||
| 1297 | 1296 | ||
| 1298 | UNBLOCK_INPUT; | 1297 | UNBLOCK_INPUT; |
| 1299 | } | 1298 | } |
| @@ -5050,7 +5049,7 @@ mac_get_window_bounds (f, inner, outer) | |||
| 5050 | GetWindowBounds (FRAME_MAC_WINDOW (f), kWindowStructureRgn, outer); | 5049 | GetWindowBounds (FRAME_MAC_WINDOW (f), kWindowStructureRgn, outer); |
| 5051 | #else /* not TARGET_API_MAC_CARBON */ | 5050 | #else /* not TARGET_API_MAC_CARBON */ |
| 5052 | RgnHandle region = NewRgn (); | 5051 | RgnHandle region = NewRgn (); |
| 5053 | 5052 | ||
| 5054 | GetWindowRegion (FRAME_MAC_WINDOW (f), kWindowContentRgn, region); | 5053 | GetWindowRegion (FRAME_MAC_WINDOW (f), kWindowContentRgn, region); |
| 5055 | *inner = (*region)->rgnBBox; | 5054 | *inner = (*region)->rgnBBox; |
| 5056 | GetWindowRegion (FRAME_MAC_WINDOW (f), kWindowStructureRgn, region); | 5055 | GetWindowRegion (FRAME_MAC_WINDOW (f), kWindowStructureRgn, region); |
| @@ -5143,7 +5142,7 @@ x_set_offset (f, xoff, yoff, change_gravity) | |||
| 5143 | { | 5142 | { |
| 5144 | Rect inner, outer, screen_rect, dummy; | 5143 | Rect inner, outer, screen_rect, dummy; |
| 5145 | RgnHandle region = NewRgn (); | 5144 | RgnHandle region = NewRgn (); |
| 5146 | 5145 | ||
| 5147 | mac_get_window_bounds (f, &inner, &outer); | 5146 | mac_get_window_bounds (f, &inner, &outer); |
| 5148 | f->x_pixels_diff = inner.left - outer.left; | 5147 | f->x_pixels_diff = inner.left - outer.left; |
| 5149 | f->y_pixels_diff = inner.top - outer.top; | 5148 | f->y_pixels_diff = inner.top - outer.top; |
| @@ -8114,7 +8113,7 @@ XTread_socket (sd, expected, hold_quit) | |||
| 8114 | switch (GetEventClass (eventRef)) | 8113 | switch (GetEventClass (eventRef)) |
| 8115 | { | 8114 | { |
| 8116 | case kEventClassWindow: | 8115 | case kEventClassWindow: |
| 8117 | if (GetEventKind (eventRef) == kEventWindowBoundsChanged) | 8116 | if (GetEventKind (eventRef) == kEventWindowBoundsChanged) |
| 8118 | { | 8117 | { |
| 8119 | WindowPtr window_ptr; | 8118 | WindowPtr window_ptr; |
| 8120 | GetEventParameter(eventRef, kEventParamDirectObject, | 8119 | GetEventParameter(eventRef, kEventParamDirectObject, |
| @@ -8431,7 +8430,7 @@ XTread_socket (sd, expected, hold_quit) | |||
| 8431 | 8430 | ||
| 8432 | if (!is_emacs_window (window_ptr)) | 8431 | if (!is_emacs_window (window_ptr)) |
| 8433 | break; | 8432 | break; |
| 8434 | 8433 | ||
| 8435 | f = mac_window_to_frame (window_ptr); | 8434 | f = mac_window_to_frame (window_ptr); |
| 8436 | 8435 | ||
| 8437 | if ((er.modifiers & activeFlag) != 0) | 8436 | if ((er.modifiers & activeFlag) != 0) |
diff --git a/src/w32term.c b/src/w32term.c index 22d139d9252..3956fd4b261 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -540,9 +540,8 @@ x_update_window_end (w, cursor_on_p, mouse_face_overwritten_p) | |||
| 540 | output_cursor.vpos, | 540 | output_cursor.vpos, |
| 541 | output_cursor.x, output_cursor.y); | 541 | output_cursor.x, output_cursor.y); |
| 542 | 542 | ||
| 543 | x_draw_vertical_border (w); | 543 | if (draw_window_fringes (w, 1)) |
| 544 | 544 | x_draw_vertical_border (w); | |
| 545 | draw_window_fringes (w); | ||
| 546 | 545 | ||
| 547 | UNBLOCK_INPUT; | 546 | UNBLOCK_INPUT; |
| 548 | } | 547 | } |
diff --git a/src/xterm.c b/src/xterm.c index 4fc9ed71abd..131753f893c 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -571,9 +571,8 @@ x_update_window_end (w, cursor_on_p, mouse_face_overwritten_p) | |||
| 571 | output_cursor.vpos, | 571 | output_cursor.vpos, |
| 572 | output_cursor.x, output_cursor.y); | 572 | output_cursor.x, output_cursor.y); |
| 573 | 573 | ||
| 574 | x_draw_vertical_border (w); | 574 | if (draw_window_fringes (w, 1)) |
| 575 | 575 | x_draw_vertical_border (w); | |
| 576 | draw_window_fringes (w); | ||
| 577 | 576 | ||
| 578 | UNBLOCK_INPUT; | 577 | UNBLOCK_INPUT; |
| 579 | } | 578 | } |