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/xterm.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/xterm.c')
| -rw-r--r-- | src/xterm.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/xterm.c b/src/xterm.c index b74fef5b92a..b4fdd5c360e 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7500,20 +7500,21 @@ x_clear_frame_area (f, x, y, width, height) | |||
| 7500 | /* RIF: Draw cursor on window W. */ | 7500 | /* RIF: Draw cursor on window W. */ |
| 7501 | 7501 | ||
| 7502 | static void | 7502 | static void |
| 7503 | x_draw_window_cursor (w, glyph_row, on, x, y, new_cursor_type, new_cursor_width) | 7503 | x_draw_window_cursor (w, glyph_row, x, y, cursor_type, cursor_width, on_p, active_p) |
| 7504 | struct window *w; | 7504 | struct window *w; |
| 7505 | struct glyph_row *glyph_row; | 7505 | struct glyph_row *glyph_row; |
| 7506 | int on, x, y; | 7506 | int x, y; |
| 7507 | int new_cursor_type, new_cursor_width; | 7507 | int cursor_type, cursor_width; |
| 7508 | int on_p, active_p; | ||
| 7508 | { | 7509 | { |
| 7509 | struct frame *f = XFRAME (WINDOW_FRAME (w)); | 7510 | struct frame *f = XFRAME (WINDOW_FRAME (w)); |
| 7510 | 7511 | ||
| 7511 | if (on) | 7512 | if (on_p) |
| 7512 | { | 7513 | { |
| 7513 | w->phys_cursor_type = new_cursor_type; | 7514 | w->phys_cursor_type = cursor_type; |
| 7514 | w->phys_cursor_on_p = 1; | 7515 | w->phys_cursor_on_p = 1; |
| 7515 | 7516 | ||
| 7516 | switch (new_cursor_type) | 7517 | switch (cursor_type) |
| 7517 | { | 7518 | { |
| 7518 | case HOLLOW_BOX_CURSOR: | 7519 | case HOLLOW_BOX_CURSOR: |
| 7519 | x_draw_hollow_cursor (w, glyph_row); | 7520 | x_draw_hollow_cursor (w, glyph_row); |
| @@ -7524,11 +7525,11 @@ x_draw_window_cursor (w, glyph_row, on, x, y, new_cursor_type, new_cursor_width) | |||
| 7524 | break; | 7525 | break; |
| 7525 | 7526 | ||
| 7526 | case BAR_CURSOR: | 7527 | case BAR_CURSOR: |
| 7527 | x_draw_bar_cursor (w, glyph_row, new_cursor_width, BAR_CURSOR); | 7528 | x_draw_bar_cursor (w, glyph_row, cursor_width, BAR_CURSOR); |
| 7528 | break; | 7529 | break; |
| 7529 | 7530 | ||
| 7530 | case HBAR_CURSOR: | 7531 | case HBAR_CURSOR: |
| 7531 | x_draw_bar_cursor (w, glyph_row, new_cursor_width, HBAR_CURSOR); | 7532 | x_draw_bar_cursor (w, glyph_row, cursor_width, HBAR_CURSOR); |
| 7532 | break; | 7533 | break; |
| 7533 | 7534 | ||
| 7534 | case NO_CURSOR: | 7535 | case NO_CURSOR: |