mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't call sysbeep() in sc_bell() if either duration or pitch is zero.
Otherwise sysbeep() makes an annoying clicking sound on some systems. 'kbdcontrol -b off' just sets the duration and pitch to zero, it doesn't set the QUIET_BELL flag. Tested by: SorAlx <soralx@cydem.zp.ua> PR: misc/41772 MFC after: 1 week
This commit is contained in:
parent
07aa16ca83
commit
c2fae87169
1 changed files with 1 additions and 1 deletions
|
|
@ -3547,7 +3547,7 @@ sc_bell(scr_stat *scp, int pitch, int duration)
|
|||
if (scp != scp->sc->cur_scp)
|
||||
scp->sc->blink_in_progress += 2;
|
||||
blink_screen(scp->sc->cur_scp);
|
||||
} else {
|
||||
} else if (duration != 0 && pitch != 0) {
|
||||
if (scp != scp->sc->cur_scp)
|
||||
pitch *= 2;
|
||||
sysbeep(pitch, duration);
|
||||
|
|
|
|||
Loading…
Reference in a new issue