From 77374f95c65b7e8892e0f75d308d2d9389e4d498 Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Sun, 31 May 2020 12:40:02 +0200 Subject: fix LABEL_ALIGN_TOP_LIKE_EDIT for Win32s/NT3.51 The alignment in the edit control works like on Win95, probably ever since we mark the application as 4.0 compatible --- alf/alflabel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alf/alflabel.cpp') diff --git a/alf/alflabel.cpp b/alf/alflabel.cpp index 8627378..a5165af 100644 --- a/alf/alflabel.cpp +++ b/alf/alflabel.cpp @@ -19,7 +19,7 @@ ALF__LabelTopPadding(HWND hwnd, ALFLabelPriv *priv) // see also: alfedit.cpp return ALF_Compat_GetSystemMetricsForDpi( SM_CYEDGE, (UINT)priv->dpi) - + (!ALF_Compat_IsMinWindowsVersion(4, 0) ? 2 : 1) /* internal padding in edit control */; + + 1 /* internal padding in edit control */; } static int -- cgit v1.2.3