Mercurial > emacs
changeset 36002:205727d5d63c
(w32_encode_char): Treat eight bit graphic and control
characters the same as ASCII and latin-1.
(x_display_and_set_cursor): Check for the focus frame's selected
window instead of selected_window.
(x_after_update_window_line): Don't clear if frame's internal
border width is zero.
(x_new_font): Don't change a tooltip's size.
(w32_initialize): Set char_ins_del_ok to 1.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Fri, 09 Feb 2001 10:02:14 +0000 |
parents | 1d402a57bb21 |
children | 32011da5632e |
files | src/w32term.c |
diffstat | 1 files changed, 14 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32term.c Fri Feb 09 09:57:04 2001 +0000 +++ b/src/w32term.c Fri Feb 09 10:02:14 2001 +0000 @@ -758,15 +758,19 @@ if (!desired_row->mode_line_p && !w->pseudo_window_p) { + struct frame *f; + int width; + BLOCK_INPUT; x_draw_row_bitmaps (w, desired_row); /* When a window has disappeared, make sure that no rest of full-width rows stays visible in the internal border. */ - if (windows_or_buffers_changed) + if (windows_or_buffers_changed + && (f = XFRAME (w->frame), + width = FRAME_INTERNAL_BORDER_WIDTH (f), + width != 0)) { - struct frame *f = XFRAME (w->frame); - int width = FRAME_INTERNAL_BORDER_WIDTH (f); int height = desired_row->visible_height; int x = (window_box_right (w, -1) + FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f)); @@ -1444,7 +1448,8 @@ /* If charset is not ASCII or Latin-1, may need to move it into Unicode space. */ if ( font && !font->bdf && w32_use_unicode_for_codepage (codepage) - && charset != CHARSET_ASCII && charset != charset_latin_iso8859_1) + && charset != CHARSET_ASCII && charset != charset_latin_iso8859_1 + && charset != CHARSET_8_BIT_CONTROL && charset != CHARSET_8_BIT_GRAPHIC) { char temp[3]; temp[0] = BYTE1 (*char2b); @@ -9076,8 +9081,8 @@ } else { - if (w != XWINDOW (selected_window) - || f != FRAME_W32_DISPLAY_INFO (f)->w32_highlight_frame) + if (f != FRAME_W32_DISPLAY_INFO (f)->w32_highlight_frame + || w != XWINDOW (f->selected_window)) { extern int cursor_in_non_selected_windows; @@ -9339,7 +9344,8 @@ if (FRAME_W32_WINDOW (f) != 0) { frame_update_line_height (f); - x_set_window_size (f, 0, f->width, f->height); + if (NILP (tip_frame) || XFRAME (tip_frame) != f) + x_set_window_size (f, 0, f->width, f->height); } else /* If we are setting a new frame's font for the first time, @@ -10321,7 +10327,7 @@ estimate_mode_line_height_hook = x_estimate_mode_line_height; scroll_region_ok = 1; /* we'll scroll partial frames */ - char_ins_del_ok = 0; /* just as fast to write the line */ + char_ins_del_ok = 1; line_ins_del_ok = 1; /* we'll just blt 'em */ fast_clear_end_of_line = 1; /* X does this well */ memory_below_frame = 0; /* we don't remember what scrolls