diff options
| author | Kim F. Storm | 2003-03-21 21:47:46 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2003-03-21 21:47:46 +0000 |
| commit | e5a3b7d9690daa0827ca68074c4fa904eb552e63 (patch) | |
| tree | dfc9e8e5ce376f2761bae93e13130d12a0999742 /src/macterm.c | |
| parent | 5c9cc435b8ee04290d18817dbf859329cb9f0224 (diff) | |
| download | emacs-e5a3b7d9690daa0827ca68074c4fa904eb552e63.tar.gz emacs-e5a3b7d9690daa0827ca68074c4fa904eb552e63.zip | |
(struct redisplay_interface): Add active_p argument to
draw_window_cursor member. All uses changed.
Diffstat (limited to 'src/macterm.c')
| -rw-r--r-- | src/macterm.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/macterm.c b/src/macterm.c index 510269c8ca5..68c599caa3e 100644 --- a/src/macterm.c +++ b/src/macterm.c | |||
| @@ -4648,19 +4648,20 @@ mac_clear_frame_area (f, x, y, width, height) | |||
| 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 | int on_p, active_p; | ||
| 4656 | { | 4657 | { |
| 4657 | if (on) | 4658 | if (on_p) |
| 4658 | { | 4659 | { |
| 4659 | w->phys_cursor_type = new_cursor_type; | 4660 | w->phys_cursor_type = cursor_type; |
| 4660 | w->phys_cursor_width = new_cursor_width; | 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); |
| @@ -4673,7 +4674,7 @@ mac_draw_window_cursor (w, glyph_row, on, x, y, new_cursor_type, new_cursor_widt | |||
| 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: |