summaryrefslogtreecommitdiff
path: root/src/core/stdfile/ftmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/stdfile/ftmanager.cpp')
-rw-r--r--src/core/stdfile/ftmanager.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/stdfile/ftmanager.cpp b/src/core/stdfile/ftmanager.cpp
index 835cf80922..abd07d2b91 100644
--- a/src/core/stdfile/ftmanager.cpp
+++ b/src/core/stdfile/ftmanager.cpp
@@ -76,8 +76,7 @@ static void LayoutTransfers(HWND hwnd, struct TFtPageData *dat)
if (dat->wnds->realCount) {
HDWP hdwp = BeginDeferWindowPos(dat->wnds->realCount);
top -= dat->scrollPos;
- for (int i=0; i < dat->wnds->realCount; ++i)
- {
+ for (int i = 0; i < dat->wnds->realCount; ++i) {
int height = dat->wnds->items[i]->rc.bottom - dat->wnds->items[i]->rc.top;
hdwp = DeferWindowPos(hdwp, dat->wnds->items[i]->hwnd, NULL, 0, top, rc.right, height, SWP_NOZORDER);
top += height;
@@ -88,9 +87,9 @@ static void LayoutTransfers(HWND hwnd, struct TFtPageData *dat)
dat->dataHeight = top;
- SCROLLINFO si = {0};
+ SCROLLINFO si = { 0 };
si.cbSize = sizeof(si);
- si.fMask = SIF_DISABLENOSCROLL|SIF_PAGE|SIF_RANGE;
+ si.fMask = SIF_DISABLENOSCROLL | SIF_PAGE | SIF_RANGE;
si.nPage = dat->height;
si.nMin = 0;
si.nMax = dat->dataHeight;