diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-03 22:04:05 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-03 22:04:05 +0200 |
commit | ebac89ec6ae0aca646420320c019a0e1cbb79d7c (patch) | |
tree | 2506816a2280bcfb5b6a203cba35caa1dca89b71 /c/layout.cpp | |
parent | 04daecdd21e86e7556a9462380096530228cd6ca (diff) | |
download | EpisodeBrowser-ebac89ec6ae0aca646420320c019a0e1cbb79d7c.tar.gz |
Use Pascal case for all functions.
Diffstat (limited to 'c/layout.cpp')
-rw-r--r-- | c/layout.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/c/layout.cpp b/c/layout.cpp index cbfb831..5fe5da4 100644 --- a/c/layout.cpp +++ b/c/layout.cpp @@ -16,16 +16,16 @@ void UpdateLayout(int w, int h) RECT rc, rrStatus; if (w && h) rc = {0, 0, w, h}; - else require(GetClientRect(g_hWnd, &rc)); - require(GetRelativeRect(g_hWndStatus, &rrStatus)); + else Require(GetClientRect(g_hWnd, &rc)); + Require(GetRelativeRect(g_hWndStatus, &rrStatus)); SendMessage(g_hWnd, WM_SETREDRAW, FALSE, 0); /* Resize list views. */ const long pad = EBIsThemeActive()? Dpi(6): 0; /* Add padding in modern themes. */ const long cyDlv = rrStatus.top-g_dlv->Height()-pad; - require(SetWindowRect(g_dlv->hWnd, pad, cyDlv, rc.right-pad, rrStatus.top-pad)); - require(SetWindowRect(g_elv->hWnd, pad, pad, rc.right-pad, cyDlv-pad)); + Require(SetWindowRect(g_dlv->hWnd, pad, cyDlv, rc.right-pad, rrStatus.top-pad)); + Require(SetWindowRect(g_elv->hWnd, pad, pad, rc.right-pad, cyDlv-pad)); g_dlv->ResizeColumns(rc.right-pad-pad); g_elv->ResizeColumns(rc.right-pad-pad); @@ -41,7 +41,7 @@ void UpdateLayout(int w, int h) bool DlvDragger::InDragArea(const int x, const int y) { RECT rrDlv; - require(GetRelativeRect(g_dlv->hWnd, &rrDlv)); + Require(GetRelativeRect(g_dlv->hWnd, &rrDlv)); const int pad = EBIsThemeActive()? Dpi(6): 0; const int extra = EBIsThemeActive()? 0: Dpi(2); @@ -53,7 +53,7 @@ bool DlvDragger::InDragArea(const int x, const int y) void DlvDragger::Drag(const int, const int y) { RECT rrDlv; - require(GetRelativeRect(g_dlv->hWnd, &rrDlv)); + Require(GetRelativeRect(g_dlv->hWnd, &rrDlv)); if (y < Dpi(50) || y > rrDlv.bottom-Dpi(20)) return; |