Mercurial > emacs
diff src/xterm.c @ 50243:3fb54e5a7201
(struct redisplay_interface): Add active_p argument to
draw_window_cursor member. All uses changed.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Fri, 21 Mar 2003 21:47:46 +0000 |
parents | 160bd7db88a1 |
children | f9447a2e045c |
line wrap: on
line diff
--- a/src/xterm.c Fri Mar 21 21:47:09 2003 +0000 +++ b/src/xterm.c Fri Mar 21 21:47:46 2003 +0000 @@ -7500,20 +7500,21 @@ /* RIF: Draw cursor on window W. */ static void -x_draw_window_cursor (w, glyph_row, on, x, y, new_cursor_type, new_cursor_width) +x_draw_window_cursor (w, glyph_row, x, y, cursor_type, cursor_width, on_p, active_p) struct window *w; struct glyph_row *glyph_row; - int on, x, y; - int new_cursor_type, new_cursor_width; + int x, y; + int cursor_type, cursor_width; + int on_p, active_p; { struct frame *f = XFRAME (WINDOW_FRAME (w)); - if (on) - { - w->phys_cursor_type = new_cursor_type; + if (on_p) + { + w->phys_cursor_type = cursor_type; w->phys_cursor_on_p = 1; - switch (new_cursor_type) + switch (cursor_type) { case HOLLOW_BOX_CURSOR: x_draw_hollow_cursor (w, glyph_row); @@ -7524,11 +7525,11 @@ break; case BAR_CURSOR: - x_draw_bar_cursor (w, glyph_row, new_cursor_width, BAR_CURSOR); + x_draw_bar_cursor (w, glyph_row, cursor_width, BAR_CURSOR); break; case HBAR_CURSOR: - x_draw_bar_cursor (w, glyph_row, new_cursor_width, HBAR_CURSOR); + x_draw_bar_cursor (w, glyph_row, cursor_width, HBAR_CURSOR); break; case NO_CURSOR: