summaryrefslogtreecommitdiff
path: root/alf/alflabel.cpp
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2020-04-14 17:34:20 +0200
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2020-04-14 17:34:20 +0200
commitf8ac8f0e75c28047e93c8de627603a6c5a6aa833 (patch)
treeb31da7aff47dcdbf87d580e0040c5a4f2f4085ae /alf/alflabel.cpp
parent0f6698f3b9f95552b2ad4a9dcd271941303067cd (diff)
fix disabled label on Win32s
Diffstat (limited to 'alf/alflabel.cpp')
-rw-r--r--alf/alflabel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alf/alflabel.cpp b/alf/alflabel.cpp
index 73216e1..c38ab08 100644
--- a/alf/alflabel.cpp
+++ b/alf/alflabel.cpp
@@ -136,7 +136,7 @@ ALF__LabelWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
SetTextColor(hdc, GetSysColor(COLOR_BTNSHADOW));
DrawText(hdc, text, -1, &rc, format);
- } if (GetVersion() >= 0x80000000) {
+ } else if (GetVersion() >= 0x80000000) {
// Win9x just uses gray text. DSS_DISABLED is broken there, too,
// so we can't get the NT look even if we wanted to
SetTextColor(hdc, GetSysColor(COLOR_GRAYTEXT));