comparison src/w32term.c @ 35449:98d65e364070

(w32_ring_bell): Only support visible bell on w32 frames. (w32_initialize): Don't set term hooks that aren't actually needed in windowed mode.
author Andrew Innes <andrewi@gnu.org>
date Sat, 20 Jan 2001 14:00:31 +0000
parents e50a7f9ce65e
children c2f95853d4c4
comparison
equal deleted inserted replaced
35448:dc70b7c5709b 35449:98d65e364070
5312 { 5312 {
5313 struct frame *f; 5313 struct frame *f;
5314 5314
5315 f = SELECTED_FRAME (); 5315 f = SELECTED_FRAME ();
5316 5316
5317 if (! FRAME_W32_P (f))
5318 return;
5319
5320 BLOCK_INPUT; 5317 BLOCK_INPUT;
5321 5318
5322 if (visible_bell) 5319 if (FRAME_W32_P (f) && visible_bell)
5323 { 5320 {
5324 int i; 5321 int i;
5325 HWND hwnd = FRAME_W32_WINDOW (SELECTED_FRAME ()); 5322 HWND hwnd = FRAME_W32_WINDOW (SELECTED_FRAME ());
5326 5323
5327 for (i = 0; i < 5; i++) 5324 for (i = 0; i < 5; i++)
10302 rif = &w32_redisplay_interface; 10299 rif = &w32_redisplay_interface;
10303 10300
10304 /* MSVC does not type K&R functions with no arguments correctly, and 10301 /* MSVC does not type K&R functions with no arguments correctly, and
10305 so we must explicitly cast them. */ 10302 so we must explicitly cast them. */
10306 clear_frame_hook = (void (*)(void)) x_clear_frame; 10303 clear_frame_hook = (void (*)(void)) x_clear_frame;
10307 ins_del_lines_hook = x_ins_del_lines;
10308 change_line_highlight_hook = x_change_line_highlight;
10309 delete_glyphs_hook = x_delete_glyphs;
10310 ring_bell_hook = (void (*)(void)) w32_ring_bell; 10304 ring_bell_hook = (void (*)(void)) w32_ring_bell;
10311 reset_terminal_modes_hook = (void (*)(void)) w32_reset_terminal_modes;
10312 set_terminal_modes_hook = (void (*)(void)) w32_set_terminal_modes;
10313 update_begin_hook = x_update_begin; 10305 update_begin_hook = x_update_begin;
10314 update_end_hook = x_update_end; 10306 update_end_hook = x_update_end;
10315 set_terminal_window_hook = w32_set_terminal_window; 10307
10316 read_socket_hook = w32_read_socket; 10308 read_socket_hook = w32_read_socket;
10309
10317 frame_up_to_date_hook = w32_frame_up_to_date; 10310 frame_up_to_date_hook = w32_frame_up_to_date;
10318 reassert_line_highlight_hook = w32_reassert_line_highlight; 10311
10319 mouse_position_hook = w32_mouse_position; 10312 mouse_position_hook = w32_mouse_position;
10320 frame_rehighlight_hook = w32_frame_rehighlight; 10313 frame_rehighlight_hook = w32_frame_rehighlight;
10321 frame_raise_lower_hook = w32_frame_raise_lower; 10314 frame_raise_lower_hook = w32_frame_raise_lower;
10322 set_vertical_scroll_bar_hook = w32_set_vertical_scroll_bar; 10315 set_vertical_scroll_bar_hook = w32_set_vertical_scroll_bar;
10323 condemn_scroll_bars_hook = w32_condemn_scroll_bars; 10316 condemn_scroll_bars_hook = w32_condemn_scroll_bars;