Forráskód Böngészése

Reusing IsWin7

Source commit: 80b1b3d54407fc8a48f75eca48aaff0c65f43a2f
Martin Prikryl 3 éve
szülő
commit
40610fe53a
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      source/forms/MessageDlg.cpp

+ 1 - 1
source/forms/MessageDlg.cpp

@@ -1029,7 +1029,7 @@ TForm * __fastcall TMessageForm::Create(const UnicodeString & Msg,
   // Windows XP (not sure about Vista) does not support Hair space.
   // Windows XP (not sure about Vista) does not support Hair space.
   // For Windows XP, we still keep the existing hack by using hard-coded spaces
   // For Windows XP, we still keep the existing hack by using hard-coded spaces
   // in resource string
   // in resource string
-  if (CheckWin32Version(6, 1))
+  if (IsWin7())
   {
   {
     // Have to be padding with spaces (the smallest space defined, hair space = 1px),
     // Have to be padding with spaces (the smallest space defined, hair space = 1px),
     // as tabs actually do not tab, just expand to 8 spaces.
     // as tabs actually do not tab, just expand to 8 spaces.