diff options
| author | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2019-01-04 16:15:33 +0100 |
|---|---|---|
| committer | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2019-01-04 16:15:33 +0100 |
| commit | 3271b043f89966a8c33bdd2de4e93a4428c0488d (patch) | |
| tree | 562cea601ced128f741201e9f24d0ea19a28b90f /alf/alflabel.cpp | |
| parent | 69e851e60e98dd45359dc942fb332b5de6ffccfe (diff) | |
improve label display on Win32s/NT3.x and make it actually run on NT 3.1
NT 3.1 doesn't have GetSysColorBrush(), and the label display isn't broken
enough for us to worry about it, since we're gonna replace it anyway at
some point
Diffstat (limited to 'alf/alflabel.cpp')
| -rw-r--r-- | alf/alflabel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alf/alflabel.cpp b/alf/alflabel.cpp index a0dc138..108c8d5 100644 --- a/alf/alflabel.cpp +++ b/alf/alflabel.cpp @@ -9,7 +9,7 @@ int ALF__LabelTopPadding(HWND hwnd, ALFAPP app) // see also: alfedit.cpp return app->compatFn->GetSystemMetricsForDpi( SM_CYEDGE, ALF_CentipointsToPixels(GetParent(hwnd), 7200)) - + 1 /* internal padding in edit control */ + + ((LOBYTE(LOWORD(GetVersion())) < 4) ? 2 : 1) /* internal padding in edit control */ + 1 /* external padding around edit control */; } |
