From 709357f668de3b596e73c3769be43cc78706fa46 Mon Sep 17 00:00:00 2001 From: Alexander Babikov Date: Thu, 5 Aug 2021 03:50:43 +0500 Subject: [PATCH] The sound gain dialog is now accessible from the menu bar in the "Tools" menu --- src/include/86box/resource.h | 1 + src/win/86Box.rc | 2 ++ src/win/win_ui.c | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/src/include/86box/resource.h b/src/include/86box/resource.h index 7ce6edd18..d5aa4615a 100644 --- a/src/include/86box/resource.h +++ b/src/include/86box/resource.h @@ -309,6 +309,7 @@ #define IDM_CONFIG 40020 #define IDM_VID_HIDE_STATUS_BAR 40021 #define IDM_UPDATE_ICONS 40030 +#define IDM_SND_GAIN 40031 #define IDM_VID_RESIZE 40040 #define IDM_VID_REMEMBER 40041 #define IDM_VID_SDL_SW 40050 diff --git a/src/win/86Box.rc b/src/win/86Box.rc index 2ee41aec1..362f0e079 100644 --- a/src/win/86Box.rc +++ b/src/win/86Box.rc @@ -134,6 +134,8 @@ BEGIN # endif MENUITEM SEPARATOR MENUITEM "Take s&creenshot\tCtrl+F11", IDM_ACTION_SCREENSHOT + MENUITEM SEPARATOR + MENUITEM "Sound &gain...", IDM_SND_GAIN #ifdef MTR_ENABLED MENUITEM SEPARATOR MENUITEM "Begin trace\tCtrl+T", IDM_ACTION_BEGIN_TRACE diff --git a/src/win/win_ui.c b/src/win/win_ui.c index 6f884a916..e83260d45 100644 --- a/src/win/win_ui.c +++ b/src/win/win_ui.c @@ -688,6 +688,10 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) win_settings_open(hwnd); break; + case IDM_SND_GAIN: + SoundGainDialogCreate(hwnd); + break; + case IDM_ABOUT: AboutDialogCreate(hwnd); break;