summaryrefslogtreecommitdiff
path: root/plugins/Mwclist/BkgrCfg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Mwclist/BkgrCfg.cpp')
-rw-r--r--plugins/Mwclist/BkgrCfg.cpp20
1 files changed, 8 insertions, 12 deletions
diff --git a/plugins/Mwclist/BkgrCfg.cpp b/plugins/Mwclist/BkgrCfg.cpp
index c8c565bd0e..c24974ccc7 100644
--- a/plugins/Mwclist/BkgrCfg.cpp
+++ b/plugins/Mwclist/BkgrCfg.cpp
@@ -159,8 +159,7 @@ static INT_PTR CALLBACK DlgProcBkgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LP
break;
}
case WM_COMMAND:
- if (LOWORD(wParam) == IDC_BROWSE)
- {
+ if (LOWORD(wParam) == IDC_BROWSE) {
char str[MAX_PATH];
OPENFILENAMEA ofn = {0};
char filter[512];
@@ -179,16 +178,15 @@ static INT_PTR CALLBACK DlgProcBkgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LP
if (!GetOpenFileNameA(&ofn)) break;
SetDlgItemTextA(hwndDlg, IDC_FILENAME, str);
}
- else
- if (LOWORD(wParam) == IDC_FILENAME && HIWORD(wParam) != EN_CHANGE) break;
+ else if (LOWORD(wParam) == IDC_FILENAME && HIWORD(wParam) != EN_CHANGE)
+ break;
+
if (LOWORD(wParam) == IDC_BITMAP)
SendMessage(hwndDlg, M_BKGR_UPDATE, 0,0);
if (LOWORD(wParam) == IDC_FILENAME && (HIWORD(wParam) != EN_CHANGE || (HWND)lParam != GetFocus()))
return 0;
- if (LOWORD(wParam) == IDC_BKGRLIST)
- {
- if (HIWORD(wParam) == CBN_SELCHANGE)
- {
+ if (LOWORD(wParam) == IDC_BKGRLIST) {
+ if (HIWORD(wParam) == CBN_SELCHANGE) {
SendMessage(hwndDlg, M_BKGR_GETSTATE, dat->indx, 0);
SendMessage(hwndDlg, M_BKGR_SETSTATE, dat->indx = SendDlgItemMessage(hwndDlg, IDC_BKGRLIST, CB_GETCURSEL, 0,0), 0);
}
@@ -196,8 +194,7 @@ static INT_PTR CALLBACK DlgProcBkgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LP
}
{
int indx = SendDlgItemMessage(hwndDlg, IDC_BKGRLIST, CB_GETCURSEL, 0,0);
- if (indx != CB_ERR && indx < dat->count)
- {
+ if (indx != CB_ERR && indx < dat->count) {
indx = SendDlgItemMessage(hwndDlg, IDC_BKGRLIST, CB_GETITEMDATA, indx, 0);
dat->item[indx].changed = TRUE;
@@ -266,8 +263,7 @@ static INT_PTR BkgrCfg_Register(WPARAM wParam,LPARAM lParam)
value = (char *)mir_alloc(len + 4); // add room for flags (DWORD)
memcpy(value, szSetting, len);
tok = strchr(value, '/');
- if (tok == NULL)
- {
+ if (tok == NULL) {
mir_free(value);
return 1;
}