From f60e8dc9ab2948e2ad70b6a347a0550c0d7a802d Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sun, 7 Mar 2004 00:27:08 +0000 Subject: 2004-03-07 Marco Gerards * bdf.c (bdf_read): Change the types of has_size, has_fbbx, has_metricset, glyph_has_encoding, glyph_has_bbx, glyph_bwidth, glyph_bheight and glyph_blines to unsigned int. * bell.h (struct bell_ops): Change the type of the argument KEY of the interface `deprecated' to unsigned int. All callers changed. * display.h (struct display_ops): Changed the type of the arguments width and height to unsigned int. All callers changed. * driver.c (driver_fini): Change the type of `i' to unsigned int to silence a gcc warning. (driver_start): Likewise. (driver_remove): Likewise. (ADD_REMOVE_COMPONENT): Likewise. (driver_add): Likewise. * generic-speaker.c (beep_on): Cup pitch at 20000, not 327677. Also silences a gcc warning. * ncursesw.c: Changed all calls to the function `ncurses_refresh' to `refresh_screen'. (current_width): Changed type to unsigned int. (current_height): Likewise. (padx): Likewise. (pady): Likewise. (refresh_screen): Cast LINES and COLS to unsigned int. (input_loop): Change `i' from int to unsigned int to silence a gcc warning. * vga.c (current_width): Changed type to unsigned int to silence a gcc warning. (current_heigh): Likewise. (struct vga_display): Changed the type of the members `width' and `height' to unsigned int to silence a gcc warning. (vga_display_change_font): Disabled the unused code for now. --- console-client/generic-speaker.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'console-client/generic-speaker.c') diff --git a/console-client/generic-speaker.c b/console-client/generic-speaker.c index 05e64875..5eaf3c5c 100644 --- a/console-client/generic-speaker.c +++ b/console-client/generic-speaker.c @@ -342,8 +342,8 @@ beep_on (short pitch) if (pitch < 20) pitch = 20; - else if (pitch > 32767) - pitch = 32767; + else if (pitch > 20000) + pitch = 20000; counter = PIT_FREQUENCY / pitch; @@ -452,7 +452,7 @@ generic_speaker_beep (void *handle) #if QUAERENDO_INVENIETIS static void -generic_speaker_play_melody (void *handle, int key) +generic_speaker_play_melody (void *handle, unsigned int key) { if (key < 0 || key >= sizeof (tune) / sizeof (tune[0])) return; -- cgit v1.2.3