From f8ac8f0e75c28047e93c8de627603a6c5a6aa833 Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Tue, 14 Apr 2020 17:34:20 +0200 Subject: fix disabled label on Win32s --- alf/alflabel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alf') 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)); -- cgit v1.2.3