# HG changeset patch # User Miles Bader # Date 1003556975 0 # Node ID 11e29c86babb0de2ae6138b4ac7d377ec9630133 # Parent ba1ee05b48f78bc7f5f3c8c2267e3a6f4dfaa735 (x_fix_overlapping_area, x_write_glyphs, expose_area) (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field. (w32_reassert_line_highlight, x_change_line_highlight): Functions removed. diff -r ba1ee05b48f7 -r 11e29c86babb src/w32term.c --- a/src/w32term.c Sat Oct 20 05:47:06 2001 +0000 +++ b/src/w32term.c Sat Oct 20 05:49:35 2001 +0000 @@ -359,8 +359,6 @@ enum draw_glyphs_face)); static void x_update_end P_ ((struct frame *)); static void w32_frame_up_to_date P_ ((struct frame *)); -static void w32_reassert_line_highlight P_ ((int, int)); -static void x_change_line_highlight P_ ((int, int, int, int)); static void w32_set_terminal_modes P_ ((void)); static void w32_reset_terminal_modes P_ ((void)); static void w32_cursor_to P_ ((int, int, int, int)); @@ -985,53 +983,6 @@ } -/*********************************************************************** - Line Highlighting - ***********************************************************************/ - -/* External interface to control of standout mode. Not used for W32 - frames. Aborts when called. */ - -static void -w32_reassert_line_highlight (new, vpos) - int new, vpos; -{ - struct frame *f; - - if (updating_frame) - f = updating_frame; - else - f = SELECTED_FRAME (); - - if (! FRAME_W32_P (f)) - return; - - abort (); -} - - -/* Call this when about to modify line at position VPOS and change - whether it is highlighted. Not used for W32 frames. Aborts when - called. */ - -static void -x_change_line_highlight (new_highlight, vpos, y, first_unused_hpos) - int new_highlight, vpos, y, first_unused_hpos; -{ - struct frame *f; - - if (updating_frame) - f = updating_frame; - else - f = SELECTED_FRAME (); - - if (! FRAME_W32_P (f)) - return; - - abort (); -} - - /* This is called when starting Emacs and when restarting after suspend. When starting Emacs, no window is mapped. And nothing must be done to Emacs's own window if it is suspended (though that @@ -5108,8 +5059,7 @@ && row->glyphs[area][i].overlaps_vertically_p); x_draw_glyphs (w, start_x, row, area, start, i, - (row->inverse_p - ? DRAW_INVERSE_VIDEO : DRAW_NORMAL_TEXT), + DRAW_NORMAL_TEXT, NULL, NULL, 1); } else @@ -5145,8 +5095,7 @@ x = x_draw_glyphs (updated_window, output_cursor.x, updated_row, updated_area, hpos, hpos + len, - (updated_row->inverse_p - ? DRAW_INVERSE_VIDEO : DRAW_NORMAL_TEXT), + DRAW_NORMAL_TEXT, &real_start, &real_end, 0); /* If we drew over the cursor, note that it is not visible any more. */ @@ -5611,7 +5560,7 @@ /* If row extends face to end of line write the whole line. */ x_draw_glyphs (w, 0, row, area, 0, row->used[area], - row->inverse_p ? DRAW_INVERSE_VIDEO : DRAW_NORMAL_TEXT, + DRAW_NORMAL_TEXT, NULL, NULL, 0); else { @@ -5650,7 +5599,7 @@ x_draw_glyphs (w, first_x - start_x, row, area, first - row->glyphs[area], last - row->glyphs[area], - row->inverse_p ? DRAW_INVERSE_VIDEO : DRAW_NORMAL_TEXT, + DRAW_NORMAL_TEXT, NULL, NULL, 0); } } @@ -5669,8 +5618,7 @@ if (row->mode_line_p || w->pseudo_window_p) x_draw_glyphs (w, 0, row, TEXT_AREA, 0, row->used[TEXT_AREA], - row->inverse_p ? DRAW_INVERSE_VIDEO : DRAW_NORMAL_TEXT, - NULL, NULL, 0); + DRAW_NORMAL_TEXT, NULL, NULL, 0); else { if (row->used[LEFT_MARGIN_AREA]) @@ -9057,8 +9005,6 @@ /* Erase the cursor by redrawing the character underneath it. */ if (mouse_face_here_p) hl = DRAW_MOUSE_FACE; - else if (cursor_row->inverse_p) - hl = DRAW_INVERSE_VIDEO; else hl = DRAW_NORMAL_TEXT; x_draw_phys_cursor_glyph (w, cursor_row, hl);