diff options
| author | Gerd Moellmann | 2002-04-25 17:28:08 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2002-04-25 17:28:08 +0000 |
| commit | ef58a7ec876cd60b2ab9c7223013fc3079e67c72 (patch) | |
| tree | e93180ffaf6ff36c70061893bb339b5cba5d0ae9 /src | |
| parent | 62c804f83683d003691b7fdc8d72b9f9f4594705 (diff) | |
| download | emacs-ef58a7ec876cd60b2ab9c7223013fc3079e67c72.tar.gz emacs-ef58a7ec876cd60b2ab9c7223013fc3079e67c72.zip | |
(x_draw_phys_cursor_glyph): Take into account that a box
cursor on a stretch glyph has a width that depends on
x_stretch_cursor_p.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/xterm.c | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 5a7dc54a669..686c19c77b1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2002-04-25 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box | ||
| 4 | cursor on a stretch glyph has a width that depends on | ||
| 5 | x_stretch_cursor_p. | ||
| 6 | |||
| 1 | 2002-04-25 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 7 | 2002-04-25 Pavel Jan,Bm(Bk <Pavel@Janik.cz> |
| 2 | 8 | ||
| 3 | * indent.c (Fvertical_motion): Fix last change. | 9 | * indent.c (Fvertical_motion): Fix last change. |
diff --git a/src/xterm.c b/src/xterm.c index 0009161af7a..1f9e863d427 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -11478,7 +11478,13 @@ x_draw_phys_cursor_glyph (w, row, hl) | |||
| 11478 | { | 11478 | { |
| 11479 | struct glyph *cursor_glyph = get_phys_cursor_glyph (w); | 11479 | struct glyph *cursor_glyph = get_phys_cursor_glyph (w); |
| 11480 | if (cursor_glyph) | 11480 | if (cursor_glyph) |
| 11481 | w->phys_cursor_width = cursor_glyph->pixel_width; | 11481 | { |
| 11482 | if (x_stretch_cursor_p) | ||
| 11483 | w->phys_cursor_width = cursor_glyph->pixel_width; | ||
| 11484 | else | ||
| 11485 | w->phys_cursor_width = min (CANON_X_UNIT (XFRAME (w->frame)), | ||
| 11486 | cursor_glyph->pixel_width); | ||
| 11487 | } | ||
| 11482 | } | 11488 | } |
| 11483 | 11489 | ||
| 11484 | /* When we erase the cursor, and ROW is overlapped by other | 11490 | /* When we erase the cursor, and ROW is overlapped by other |