[SNDVOL32] Fix the positions and sizes of the separators of the normal line dialog and load the master dialogs for speakers or headphones.

This commit is contained in:
Eric Kohl 2019-02-10 00:14:05 +01:00
parent f4320047c3
commit d1093e8750
29 changed files with 63 additions and 57 deletions

View file

@ -434,7 +434,13 @@ EnumConnectionsCallback(
/* is it selected */
if (Flags != 0x4)
{
int dlgId = (PrefContext->MixerWindow->Mode == SMALL_MODE) ? IDD_SMALL_MASTER : IDD_NORMAL_MASTER;
int dlgId;
if ((Line->dwComponentType == MIXERLINE_COMPONENTTYPE_DST_SPEAKERS) ||
(Line->dwComponentType == MIXERLINE_COMPONENTTYPE_DST_HEADPHONES))
dlgId = (PrefContext->MixerWindow->Mode == SMALL_MODE) ? IDD_SMALL_MASTER : IDD_NORMAL_MASTER;
else
dlgId = (PrefContext->MixerWindow->Mode == SMALL_MODE) ? IDD_SMALL_LINE : IDD_NORMAL_LINE;
/* load dialog resource */
LoadDialog(hAppInstance, PrefContext->MixerWindow, MAKEINTRESOURCE(dlgId), PrefContext->Count);