diff options
Diffstat (limited to 'iax/dial_dlg.cpp')
-rw-r--r-- | iax/dial_dlg.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/iax/dial_dlg.cpp b/iax/dial_dlg.cpp index 29fcf66..1201806 100644 --- a/iax/dial_dlg.cpp +++ b/iax/dial_dlg.cpp @@ -142,8 +142,8 @@ static BOOL CALLBACK DlgProcDial(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l int input = SendDlgItemMessage(hwndDlg, IDC_SLD_IN, TBM_GETPOS, 0, 0),
output = SendDlgItemMessage(hwndDlg, IDC_SLD_OUT, TBM_GETPOS, 0, 0);
- iaxc_input_level_set(input / 100.0);
- iaxc_output_level_set(output / 100.0);
+ iaxc_input_level_set(input / 100.0f);
+ iaxc_output_level_set(output / 100.0f);
}
break;
case WM_COMMAND:
@@ -159,6 +159,7 @@ static BOOL CALLBACK DlgProcDial(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l if(buff[0]) {
Call(buff);
SetFocus(GetDlgItem(hwndDlg, IDC_CMB_NUM));
+ SendMessage(hwndDlg, WMU_REFRESHLINEINFO, 0, 0);
}
}
return TRUE;
@@ -295,15 +296,15 @@ void InitDialDialog() { }
}
- hBrushActive = CreateSolidBrush(RGB(0, 0xff, 0));
- hBrushFree = CreateSolidBrush(RGB(0xD0, 0xD0, 0xD0));
- hBrushActiveSelect = CreateSolidBrush(RGB(0x80, 0xff, 0x80));
- hBrushFreeSelect = CreateSolidBrush(RGB(0xff, 0xff, 0xff));
+ hBrushActive = CreateSolidBrush(RGB(0, 0xff, 0)); // green
+ hBrushFree = CreateSolidBrush(RGB(0xD0, 0xD0, 0xD0)); // grey
+ hBrushActiveSelect = CreateSolidBrush(RGB(0x80, 0xff, 0x80)); // light green
+ hBrushFreeSelect = CreateSolidBrush(RGB(0xff, 0xff, 0xff)); // white
- hBrushRingIn = CreateSolidBrush(RGB(0xff, 0, 0xff));
- hBrushRingOut = CreateSolidBrush(RGB(0, 0, 0xff));
- hBrushRingInSelect = CreateSolidBrush(RGB(0xff, 0x80, 0xff));
- hBrushRingOutSelect = CreateSolidBrush(RGB(0x80, 0x80, 0xff));
+ hBrushRingIn = CreateSolidBrush(RGB(0xff, 0, 0xff)); // purple
+ hBrushRingOut = CreateSolidBrush(RGB(0, 0, 0xff)); // blue
+ hBrushRingInSelect = CreateSolidBrush(RGB(0xff, 0x80, 0xff)); // light-purple
+ hBrushRingOutSelect = CreateSolidBrush(RGB(0x80, 0x80, 0xff)); // light-blue
hkid = GlobalAddAtom("IAX plugin hk id");
CreateDialogParam(hInst, MAKEINTRESOURCE(IDD_DIAL), 0, DlgProcDial, 0);
|