aboutsummaryrefslogtreecommitdiff
path: root/c/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/main.c')
-rw-r--r--c/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/c/main.c b/c/main.c
index 40c25b4..045d31c 100644
--- a/c/main.c
+++ b/c/main.c
@@ -207,7 +207,7 @@ void
UpdateLayout(HWND hWnd)
{
HWND hElv, hDlv;
- int cxColumn;
+ int cxColumn, cyDlv;
RECT rc;
static int cxVScroll = 0;
extern int g_SelectedItem;
@@ -222,7 +222,8 @@ UpdateLayout(HWND hWnd)
/* Resize data list view. */
hDlv = GetDlgItem(hWnd, IDC_DATALISTVIEW);
- MoveWindow(hDlv, 0, rc.bottom-100,
+ cyDlv = rc.bottom-100;
+ MoveWindow(hDlv, 0, cyDlv,
rc.right, rc.bottom,
TRUE);
@@ -234,7 +235,7 @@ UpdateLayout(HWND hWnd)
hElv = GetDlgItem(hWnd, IDC_EPISODELISTVIEW);
MoveWindow(hElv, 0, 0,
- rc.right, rc.bottom-100+1,
+ rc.right, cyDlv+1,
TRUE);
cxColumn = ListView_GetColumnWidth(hElv, 0);