mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
[SNDVOL32] Fix coding style issues. No code changes!
This commit is contained in:
parent
d56d9c1aaa
commit
b995880ee4
2 changed files with 16 additions and 16 deletions
|
@ -573,7 +573,7 @@ UpdateDialogLineSwitchControl(
|
|||
WCHAR LineName[MIXER_LONG_NAME_CHARS];
|
||||
|
||||
/* find the index of this line */
|
||||
for(Index = 0; Index < PrefContext->Count; Index++)
|
||||
for (Index = 0; Index < PrefContext->Count; Index++)
|
||||
{
|
||||
/* get id */
|
||||
wID = (Index + 1) * IDC_LINE_NAME;
|
||||
|
@ -621,7 +621,7 @@ UpdateDialogLineSliderControl(
|
|||
WCHAR LineName[MIXER_LONG_NAME_CHARS];
|
||||
|
||||
/* find the index of this line */
|
||||
for(Index = 0; Index < PrefContext->Count; Index++)
|
||||
for (Index = 0; Index < PrefContext->Count; Index++)
|
||||
{
|
||||
/* get id */
|
||||
wID = (Index + 1) * IDC_LINE_NAME;
|
||||
|
|
|
@ -94,7 +94,7 @@ PrefDlgAddLine(PSND_MIXER Mixer,
|
|||
PPREFERENCES_CONTEXT PrefContext = (PPREFERENCES_CONTEXT)Context;
|
||||
|
||||
UNREFERENCED_PARAMETER(Mixer);
|
||||
UNREFERENCED_PARAMETER(DisplayControls);
|
||||
UNREFERENCED_PARAMETER(DisplayControls);
|
||||
|
||||
switch (Line->dwComponentType)
|
||||
{
|
||||
|
@ -174,7 +174,7 @@ PrefDlgAddConnection(PSND_MIXER Mixer,
|
|||
UINT i;
|
||||
|
||||
UNREFERENCED_PARAMETER(Mixer);
|
||||
UNREFERENCED_PARAMETER(LineID);
|
||||
UNREFERENCED_PARAMETER(LineID);
|
||||
|
||||
if (Line->cControls != 0)
|
||||
{
|
||||
|
@ -877,23 +877,23 @@ MainWindowProc(HWND hwnd,
|
|||
/* check if the message is from the line switch */
|
||||
if (HIWORD(wParam) == BN_CLICKED && (CtrlID % IDC_LINE_SWITCH == 0))
|
||||
{
|
||||
/* compute line offset */
|
||||
LineOffset = CtrlID / IDC_LINE_SWITCH;
|
||||
/* compute line offset */
|
||||
LineOffset = CtrlID / IDC_LINE_SWITCH;
|
||||
|
||||
/* compute window id of line name static control */
|
||||
CtrlID = LineOffset * IDC_LINE_NAME;
|
||||
|
||||
/* get line name */
|
||||
if (GetDlgItemTextW(hwnd, CtrlID, Context.LineName, MIXER_LONG_NAME_CHARS) != 0)
|
||||
{
|
||||
/* setup context */
|
||||
Context.SliderPos = SendMessage((HWND)lParam, BM_GETCHECK, 0, 0);
|
||||
Context.bVertical = FALSE;
|
||||
Context.bSwitch = TRUE;
|
||||
/* get line name */
|
||||
if (GetDlgItemTextW(hwnd, CtrlID, Context.LineName, MIXER_LONG_NAME_CHARS) != 0)
|
||||
{
|
||||
/* setup context */
|
||||
Context.SliderPos = SendMessage((HWND)lParam, BM_GETCHECK, 0, 0);
|
||||
Context.bVertical = FALSE;
|
||||
Context.bSwitch = TRUE;
|
||||
|
||||
/* set volume */
|
||||
SndMixerEnumConnections(Preferences.MixerWindow->Mixer, Preferences.SelectedLine, SetVolumeCallback, (LPVOID)&Context);
|
||||
}
|
||||
/* set volume */
|
||||
SndMixerEnumConnections(Preferences.MixerWindow->Mixer, Preferences.SelectedLine, SetVolumeCallback, (LPVOID)&Context);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue