mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:56:00 +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];
|
WCHAR LineName[MIXER_LONG_NAME_CHARS];
|
||||||
|
|
||||||
/* find the index of this line */
|
/* find the index of this line */
|
||||||
for(Index = 0; Index < PrefContext->Count; Index++)
|
for (Index = 0; Index < PrefContext->Count; Index++)
|
||||||
{
|
{
|
||||||
/* get id */
|
/* get id */
|
||||||
wID = (Index + 1) * IDC_LINE_NAME;
|
wID = (Index + 1) * IDC_LINE_NAME;
|
||||||
|
@ -621,7 +621,7 @@ UpdateDialogLineSliderControl(
|
||||||
WCHAR LineName[MIXER_LONG_NAME_CHARS];
|
WCHAR LineName[MIXER_LONG_NAME_CHARS];
|
||||||
|
|
||||||
/* find the index of this line */
|
/* find the index of this line */
|
||||||
for(Index = 0; Index < PrefContext->Count; Index++)
|
for (Index = 0; Index < PrefContext->Count; Index++)
|
||||||
{
|
{
|
||||||
/* get id */
|
/* get id */
|
||||||
wID = (Index + 1) * IDC_LINE_NAME;
|
wID = (Index + 1) * IDC_LINE_NAME;
|
||||||
|
|
|
@ -94,7 +94,7 @@ PrefDlgAddLine(PSND_MIXER Mixer,
|
||||||
PPREFERENCES_CONTEXT PrefContext = (PPREFERENCES_CONTEXT)Context;
|
PPREFERENCES_CONTEXT PrefContext = (PPREFERENCES_CONTEXT)Context;
|
||||||
|
|
||||||
UNREFERENCED_PARAMETER(Mixer);
|
UNREFERENCED_PARAMETER(Mixer);
|
||||||
UNREFERENCED_PARAMETER(DisplayControls);
|
UNREFERENCED_PARAMETER(DisplayControls);
|
||||||
|
|
||||||
switch (Line->dwComponentType)
|
switch (Line->dwComponentType)
|
||||||
{
|
{
|
||||||
|
@ -174,7 +174,7 @@ PrefDlgAddConnection(PSND_MIXER Mixer,
|
||||||
UINT i;
|
UINT i;
|
||||||
|
|
||||||
UNREFERENCED_PARAMETER(Mixer);
|
UNREFERENCED_PARAMETER(Mixer);
|
||||||
UNREFERENCED_PARAMETER(LineID);
|
UNREFERENCED_PARAMETER(LineID);
|
||||||
|
|
||||||
if (Line->cControls != 0)
|
if (Line->cControls != 0)
|
||||||
{
|
{
|
||||||
|
@ -877,23 +877,23 @@ MainWindowProc(HWND hwnd,
|
||||||
/* check if the message is from the line switch */
|
/* check if the message is from the line switch */
|
||||||
if (HIWORD(wParam) == BN_CLICKED && (CtrlID % IDC_LINE_SWITCH == 0))
|
if (HIWORD(wParam) == BN_CLICKED && (CtrlID % IDC_LINE_SWITCH == 0))
|
||||||
{
|
{
|
||||||
/* compute line offset */
|
/* compute line offset */
|
||||||
LineOffset = CtrlID / IDC_LINE_SWITCH;
|
LineOffset = CtrlID / IDC_LINE_SWITCH;
|
||||||
|
|
||||||
/* compute window id of line name static control */
|
/* compute window id of line name static control */
|
||||||
CtrlID = LineOffset * IDC_LINE_NAME;
|
CtrlID = LineOffset * IDC_LINE_NAME;
|
||||||
|
|
||||||
/* get line name */
|
/* get line name */
|
||||||
if (GetDlgItemTextW(hwnd, CtrlID, Context.LineName, MIXER_LONG_NAME_CHARS) != 0)
|
if (GetDlgItemTextW(hwnd, CtrlID, Context.LineName, MIXER_LONG_NAME_CHARS) != 0)
|
||||||
{
|
{
|
||||||
/* setup context */
|
/* setup context */
|
||||||
Context.SliderPos = SendMessage((HWND)lParam, BM_GETCHECK, 0, 0);
|
Context.SliderPos = SendMessage((HWND)lParam, BM_GETCHECK, 0, 0);
|
||||||
Context.bVertical = FALSE;
|
Context.bVertical = FALSE;
|
||||||
Context.bSwitch = TRUE;
|
Context.bSwitch = TRUE;
|
||||||
|
|
||||||
/* set volume */
|
/* set volume */
|
||||||
SndMixerEnumConnections(Preferences.MixerWindow->Mixer, Preferences.SelectedLine, SetVolumeCallback, (LPVOID)&Context);
|
SndMixerEnumConnections(Preferences.MixerWindow->Mixer, Preferences.SelectedLine, SetVolumeCallback, (LPVOID)&Context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue