diff --git a/src/gui/DlgAudioConfig.cpp b/src/gui/DlgAudioConfig.cpp index 8c323f255..d8a7f1171 100644 --- a/src/gui/DlgAudioConfig.cpp +++ b/src/gui/DlgAudioConfig.cpp @@ -113,7 +113,7 @@ INT_PTR CALLBACK DlgAudioConfigProc(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPAR SendMessage(GetDlgItem(hWndDlg, IDC_AC_UNKNOWN_CODEC), BM_SETCHECK, (WPARAM)g_XBAudio.codec_unknown, 0); - SendMessage(GetDlgItem(hWndDlg, IDC_AC_MUTE_ON_UNFOCUS_DISABLE), BM_SETCHECK, (WPARAM)g_XBAudio.mute_on_unfocus==0, 0); + SendMessage(GetDlgItem(hWndDlg, IDC_AC_MUTE_WHEN_UNFOCUS), BM_SETCHECK, (WPARAM)g_XBAudio.mute_on_unfocus==true, 0); } } break; @@ -168,9 +168,9 @@ INT_PTR CALLBACK DlgAudioConfigProc(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPAR g_XBAudio.codec_unknown = (lRet == BST_CHECKED); - lRet = SendMessage(GetDlgItem(hWndDlg, IDC_AC_MUTE_ON_UNFOCUS_DISABLE), BM_GETCHECK, 0, 0); + lRet = SendMessage(GetDlgItem(hWndDlg, IDC_AC_MUTE_WHEN_UNFOCUS), BM_GETCHECK, 0, 0); - g_XBAudio.mute_on_unfocus = (lRet != BST_CHECKED); + g_XBAudio.mute_on_unfocus = (lRet == BST_CHECKED); } /*! save audio configuration */ diff --git a/src/gui/resource/Cxbx.rc b/src/gui/resource/Cxbx.rc index 6e9aa2e9f..aeda426ac 100644 --- a/src/gui/resource/Cxbx.rc +++ b/src/gui/resource/Cxbx.rc @@ -337,8 +337,7 @@ BEGIN LTEXT "Audio Adapter:",IDC_STATIC,13,14,57,8,0,WS_EX_RIGHT LTEXT "Codec Options:",IDC_STATIC,13,34,57,8,0,WS_EX_RIGHT LTEXT "Other Options:",IDC_STATIC,13,60,57,8,0,WS_EX_RIGHT - CONTROL "Disable mute on unfocus",IDC_AC_MUTE_ON_UNFOCUS_DISABLE, - "Button",BS_AUTOCHECKBOX | WS_TABSTOP,78,60,97,10 + CONTROL "Mute when unfocus",IDC_AC_MUTE_WHEN_UNFOCUS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,78,60,78,10 END IDD_NETWORK_CFG DIALOGEX 0, 0, 404, 76 diff --git a/src/gui/resource/ResCxbx.h b/src/gui/resource/ResCxbx.h index 06cbc1f7a..bdcb4b96c 100644 --- a/src/gui/resource/ResCxbx.h +++ b/src/gui/resource/ResCxbx.h @@ -194,7 +194,7 @@ #define ID_GUI_STATUS_LLE_FLAGS 1097 #define ID_GUI_STATUS_XBOX_LED_COLOUR 1098 #define ID_GUI_STATUS_LOG_ENABLED 1099 -#define IDC_AC_MUTE_ON_UNFOCUS_DISABLE 1101 +#define IDC_AC_MUTE_WHEN_UNFOCUS 1100 #define IDC_XBOX_PORT_0 1158 #define IDC_XBOX_PORT_1 1166 #define IDC_XBOX_PORT_2 1174