From 7b7fcdfef7487770d3089bafaedf467e30ed3afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 1 Apr 2022 13:29:25 +0200 Subject: Support per-monitor DPI. --- c/listview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c/listview.c') diff --git a/c/listview.c b/c/listview.c index ce81adf..628ed13 100644 --- a/c/listview.c +++ b/c/listview.c @@ -74,7 +74,7 @@ LvHeight(HWND hLv) { int iCount; iCount = ListView_GetItemCount(hLv); - return iCount? 27+iCount*19: 0; + return iCount? Dpi(27)+iCount*Dpi(19): 0; } /* Enable/disable non-classic list view theme. */ -- cgit v1.2.3