comparison src/macterm.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 90e10bfd8bfa
children f9447a2e045c
comparison
equal deleted inserted replaced
50242:8bd070bffa46 50243:3fb54e5a7201
4646 4646
4647 4647
4648 /* RIF: Draw cursor on window W. */ 4648 /* RIF: Draw cursor on window W. */
4649 4649
4650 static void 4650 static void
4651 mac_draw_window_cursor (w, glyph_row, on, x, y, new_cursor_type, new_cursor_width) 4651 mac_draw_window_cursor (w, glyph_row, x, y, cursor_type, cursor_width, on_p, active_p)
4652 struct window *w; 4652 struct window *w;
4653 struct glyph_row *glyph_row; 4653 struct glyph_row *glyph_row;
4654 int on, x, y; 4654 int x, y;
4655 int new_cursor_type, new_cursor_width; 4655 int cursor_type, cursor_width;
4656 { 4656 int on_p, active_p;
4657 if (on) 4657 {
4658 { 4658 if (on_p)
4659 w->phys_cursor_type = new_cursor_type; 4659 {
4660 w->phys_cursor_width = new_cursor_width; 4660 w->phys_cursor_type = cursor_type;
4661 w->phys_cursor_width = cursor_width;
4661 w->phys_cursor_on_p = 1; 4662 w->phys_cursor_on_p = 1;
4662 4663
4663 switch (new_cursor_type) 4664 switch (cursor_type)
4664 { 4665 {
4665 case HOLLOW_BOX_CURSOR: 4666 case HOLLOW_BOX_CURSOR:
4666 x_draw_hollow_cursor (w, glyph_row); 4667 x_draw_hollow_cursor (w, glyph_row);
4667 break; 4668 break;
4668 4669
4671 break; 4672 break;
4672 4673
4673 case HBAR_CURSOR: 4674 case HBAR_CURSOR:
4674 /* TODO. For now, just draw bar cursor. */ 4675 /* TODO. For now, just draw bar cursor. */
4675 case BAR_CURSOR: 4676 case BAR_CURSOR:
4676 x_draw_bar_cursor (w, glyph_row, new_cursor_width); 4677 x_draw_bar_cursor (w, glyph_row, cursor_width);
4677 break; 4678 break;
4678 4679
4679 case NO_CURSOR: 4680 case NO_CURSOR:
4680 break; 4681 break;
4681 4682