diff options
author | John Ankarström <john@ankarstrom.se> | 2022-04-01 03:07:45 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-04-01 03:07:45 +0200 |
commit | 54cdf98de41bac6d0134352d9bff2c208e02f579 (patch) | |
tree | 0b37608785588b6bf6f6c13f5aa6680d491f75be /c/main.c | |
parent | 4f98051cbe62171775f6b319400b6dc6c2841e07 (diff) | |
download | EpisodeBrowser-54cdf98de41bac6d0134352d9bff2c208e02f579.tar.gz |
Change case block indentation.
This avoids the following:
}
}
Diffstat (limited to 'c/main.c')
-rw-r--r-- | c/main.c | 22 |
1 files changed, 12 insertions, 10 deletions
@@ -102,14 +102,14 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) UpdateLayout(); break; case WM_GETMINMAXINFO: - { + { LPMINMAXINFO lpMMI = (LPMINMAXINFO)lParam; extern HWND HDlv; lpMMI->ptMinTrackSize.y = LvHeight(HDlv)+80; break; - } + } case WM_CREATE: - { + { extern HWND HElv; HWnd = hWnd; DlvCreate(); @@ -117,22 +117,24 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) UpdateTheme(); SetFocus(HElv); break; - } + } case WM_THEMECHANGED: UpdateTheme(); break; case WM_ACTIVATE: switch (wParam) { - term_t t; case WA_INACTIVE: HFocus = GetFocus(); break; case WA_ACTIVE: case WA_CLICKACTIVE: + { + term_t t; SetFocus(HFocus); t = T(0); P("track_episodes","update_tracked_episodes",0,t); ElvRedraw(); + } } break; case WM_NOTIFY: @@ -161,7 +163,7 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) case ID_TOGGLE: case ID_FORGET: case ID_LOOKUP: - { + { LVITEM lvi; term_t t; extern HWND HElv; @@ -198,8 +200,8 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) break; } } - b: break; - } + b: break; + } } break; default: @@ -306,12 +308,12 @@ UpdateTheme() switch (bThemes) { case -1: - { + { HMODULE hModule; hModule = LoadLibrary(TEXT("uxtheme.dll")); bThemes = hModule && GetProcAddress(hModule,"SetWindowTheme"); break; - } + } case 1: bThemeActive = IsThemeActive(); LvSetTheme(HElv, bThemeActive); |