aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Voelker1995-11-07 07:35:06 +0000
committerGeoff Voelker1995-11-07 07:35:06 +0000
commit6e72ba86635487989ef98deaf923d0eeb0e5d83d (patch)
treefa012850b526a9a6ebe5af95b2cb5ec90b141f99
parentcd6885f37c17ed21bc57882986f8260ae1595271 (diff)
downloademacs-6e72ba86635487989ef98deaf923d0eeb0e5d83d.tar.gz
emacs-6e72ba86635487989ef98deaf923d0eeb0e5d83d.zip
(nt_ring_bell): Renamed from ring_bell, now global.
(initialize_win_nt_display): Use nt_ring_bell. [HAVE_NTGUI] (pixel_to_glyph_coords, glyph_to_pixel_coords): Don't define.
-rw-r--r--src/w32console.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/w32console.c b/src/w32console.c
index 10190beaa93..f7dc3ab27ed 100644
--- a/src/w32console.c
+++ b/src/w32console.c
@@ -57,7 +57,7 @@ static void reassert_line_highlight (int, int);
57static void insert_glyphs (GLYPH *start, int len); 57static void insert_glyphs (GLYPH *start, int len);
58static void write_glyphs (GLYPH *string, int len); 58static void write_glyphs (GLYPH *string, int len);
59static void delete_glyphs (int n); 59static void delete_glyphs (int n);
60static void ring_bell (void); 60void nt_ring_bell (void);
61static void reset_terminal_modes (void); 61static void reset_terminal_modes (void);
62static void set_terminal_modes (void); 62static void set_terminal_modes (void);
63static void set_terminal_window (int size); 63static void set_terminal_window (int size);
@@ -367,8 +367,10 @@ write_glyphs (register GLYPH *string, register int len)
367 continue; 367 continue;
368 } 368 }
369 GLYPH_FOLLOW_ALIASES (glyph_table, glyph_len, glyph); 369 GLYPH_FOLLOW_ALIASES (glyph_table, glyph_len, glyph);
370#ifndef HAVE_NTGUI
370 if (GLYPH_FACE (fixfix, glyph) != 0) 371 if (GLYPH_FACE (fixfix, glyph) != 0)
371 printf ("Glyph face is %d\n", GLYPH_FACE (fixfix, glyph)); 372 printf ("Glyph face is %d\n", GLYPH_FACE (fixfix, glyph));
373#endif /* !HAVE_NTGUI */
372 if (GLYPH_SIMPLE_P (glyph_table, glyph_len, glyph)) 374 if (GLYPH_SIMPLE_P (glyph_table, glyph_len, glyph))
373 { 375 {
374 *ptr++ = glyph & 0xFF; 376 *ptr++ = glyph & 0xFF;
@@ -418,7 +420,7 @@ delete_glyphs (int n)
418static unsigned int sound_type = 0xFFFFFFFF; 420static unsigned int sound_type = 0xFFFFFFFF;
419 421
420void 422void
421ring_bell (void) 423nt_ring_bell (void)
422{ 424{
423 if (sound_type == 0xFFFFFFFF) 425 if (sound_type == 0xFFFFFFFF)
424 Beep (666, 100); 426 Beep (666, 100);
@@ -551,7 +553,7 @@ initialize_win_nt_display (void)
551 insert_glyphs_hook = (term_hook) insert_glyphs; 553 insert_glyphs_hook = (term_hook) insert_glyphs;
552 write_glyphs_hook = (term_hook) write_glyphs; 554 write_glyphs_hook = (term_hook) write_glyphs;
553 delete_glyphs_hook = (term_hook) delete_glyphs; 555 delete_glyphs_hook = (term_hook) delete_glyphs;
554 ring_bell_hook = (term_hook) ring_bell; 556 ring_bell_hook = (term_hook) nt_ring_bell;
555 reset_terminal_modes_hook = (term_hook) reset_terminal_modes; 557 reset_terminal_modes_hook = (term_hook) reset_terminal_modes;
556 set_terminal_modes_hook = (term_hook) set_terminal_modes; 558 set_terminal_modes_hook = (term_hook) set_terminal_modes;
557 set_terminal_window_hook = (term_hook) set_terminal_window; 559 set_terminal_window_hook = (term_hook) set_terminal_window;
@@ -606,6 +608,7 @@ DEFUN ("set-cursor-size", Fset_cursor_size, Sset_cursor_size, 1, 1, 0,
606 return Qt; 608 return Qt;
607} 609}
608 610
611#ifndef HAVE_NTGUI
609void 612void
610pixel_to_glyph_coords (FRAME_PTR f, int pix_x, int pix_y, int *x, int *y, 613pixel_to_glyph_coords (FRAME_PTR f, int pix_x, int pix_y, int *x, int *y,
611 void *bounds, int noclip) 614 void *bounds, int noclip)
@@ -620,6 +623,7 @@ glyph_to_pixel_coords (FRAME_PTR f, int x, int y, int *pix_x, int *pix_y)
620 *pix_x = x; 623 *pix_x = x;
621 *pix_y = y; 624 *pix_y = y;
622} 625}
626#endif /* !HAVE_NTGUI */
623 627
624void 628void
625syms_of_ntterm () 629syms_of_ntterm ()