diff options
| author | Jason Rumney | 2002-03-06 23:17:38 +0000 |
|---|---|---|
| committer | Jason Rumney | 2002-03-06 23:17:38 +0000 |
| commit | d6dc9151ccd695d157d7db8c397d184481e522fe (patch) | |
| tree | 889a25998853bb7e0d94eececd1086ab735fc452 /src | |
| parent | 14ca7c98497bdfe721a07b2161fbe9447f3ff666 (diff) | |
| download | emacs-d6dc9151ccd695d157d7db8c397d184481e522fe.tar.gz emacs-d6dc9151ccd695d157d7db8c397d184481e522fe.zip | |
(x_draw_hollow_cursor): Draw same size as block cursor.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32term.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32term.c b/src/w32term.c index 07624b9d20a..3d52d332056 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -9409,7 +9409,7 @@ x_draw_hollow_cursor (w, row) | |||
| 9409 | rect.left = WINDOW_TEXT_TO_FRAME_PIXEL_X (w, w->phys_cursor.x); | 9409 | rect.left = WINDOW_TEXT_TO_FRAME_PIXEL_X (w, w->phys_cursor.x); |
| 9410 | rect.top = (WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y) | 9410 | rect.top = (WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y) |
| 9411 | + row->ascent - w->phys_cursor_ascent); | 9411 | + row->ascent - w->phys_cursor_ascent); |
| 9412 | rect.bottom = rect.top + row->height - 1; | 9412 | rect.bottom = rect.top + row->height; |
| 9413 | 9413 | ||
| 9414 | /* Get the glyph the cursor is on. If we can't tell because | 9414 | /* Get the glyph the cursor is on. If we can't tell because |
| 9415 | the current matrix is invalid or such, give up. */ | 9415 | the current matrix is invalid or such, give up. */ |
| @@ -9421,7 +9421,7 @@ x_draw_hollow_cursor (w, row) | |||
| 9421 | glyph, and `x-stretch-block-cursor' is nil, don't draw a | 9421 | glyph, and `x-stretch-block-cursor' is nil, don't draw a |
| 9422 | rectangle as wide as the glyph, but use a canonical character | 9422 | rectangle as wide as the glyph, but use a canonical character |
| 9423 | width instead. */ | 9423 | width instead. */ |
| 9424 | wd = cursor_glyph->pixel_width - 1; | 9424 | wd = cursor_glyph->pixel_width; |
| 9425 | if (cursor_glyph->type == STRETCH_GLYPH | 9425 | if (cursor_glyph->type == STRETCH_GLYPH |
| 9426 | && !x_stretch_cursor_p) | 9426 | && !x_stretch_cursor_p) |
| 9427 | wd = min (CANON_X_UNIT (f), wd); | 9427 | wd = min (CANON_X_UNIT (f), wd); |