comparison 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
comparison
equal deleted inserted replaced
50242:8bd070bffa46 50243:3fb54e5a7201
7498 7498
7499 7499
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);
7520 break; 7521 break;
7521 7522
7522 case FILLED_BOX_CURSOR: 7523 case FILLED_BOX_CURSOR:
7523 draw_phys_cursor_glyph (w, glyph_row, DRAW_CURSOR); 7524 draw_phys_cursor_glyph (w, glyph_row, DRAW_CURSOR);
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:
7535 w->phys_cursor_width = 0; 7536 w->phys_cursor_width = 0;
7536 break; 7537 break;