hw/xwin: Silence bell when volume is zero

Allow the bell to be turned off with X server option '-f 0', or by 'xset b off'.

Signed-off-by: Colin Harrison <colin.harrison@virgin.net>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
This commit is contained in:
Colin Harrison 2014-02-28 14:21:46 +00:00 committed by Jon TURNEY
parent 7e37c4f727
commit 6432d44020

View File

@ -128,7 +128,7 @@ winKeybdBell(int iPercent, DeviceIntPtr pDeviceInt, void *pCtrl, int iClass)
* sound on systems with a sound card or it will beep the PC speaker * sound on systems with a sound card or it will beep the PC speaker
* on systems that do not have a sound card. * on systems that do not have a sound card.
*/ */
MessageBeep(MB_OK); if (iPercent > 0) MessageBeep(MB_OK);
} }
/* Change some keyboard configuration parameters */ /* Change some keyboard configuration parameters */