From 47664d3f2e12649d324b031ca6ffd5589fe3d197 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 30 Mar 2013 14:55:24 +0100 Subject: fdo#58807 bring Beep() for basic back The functionality was removed by fdo#48549. This partially reverts 0f6101cfef4c2e45d9f1f1b3a61ef94799e4526b 0bdf6fc7c71c4c49e6d6f83d56ac953272ad16d5 85cb9084533605657aca0394afe4516058a8e4ef I changed the behavior to always beep, because only the basic macro function is using Beep(). Looks like the Beep macro function didn't even work correctly before the removal, because the default was to not beep for most platforms. So I set the volume from disable (0) to 50% for XBell(). Change-Id: I663ffb7af75d2fd6d2c1f94073e4412d9744de4a Reviewed-on: https://gerrit.libreoffice.org/3124 Reviewed-by: Thorsten Behrens Tested-by: Thorsten Behrens --- vcl/win/source/window/salframe.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vcl/win/source/window/salframe.cxx') diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx index 5951b15f3690..a668d72551d3 100644 --- a/vcl/win/source/window/salframe.cxx +++ b/vcl/win/source/window/salframe.cxx @@ -2934,6 +2934,14 @@ const SystemEnvData* WinSalFrame::GetSystemData() const // ----------------------------------------------------------------------- +void WinSalFrame::Beep() +{ + // a simple beep + MessageBeep( 0 ); +} + +// ----------------------------------------------------------------------- + SalFrame::SalPointerState WinSalFrame::GetPointerState() { SalPointerState aState; -- cgit v1.2.3