Allow DirectWrite on Pre-Win7

This commit is contained in:
EAZYBLACK 2026-09-26 14:12:56 +03:00
commit 0ef1dc6989
2 changed files with 2 additions and 10 deletions

View file

@ -531,9 +531,8 @@ gfxWindowsPlatform::CreatePlatformFontList()
{ {
gfxPlatformFontList *pfl; gfxPlatformFontList *pfl;
// bug 630201 - older pre-RTM versions of Direct2D/DirectWrite cause odd // DirectWrite is Vista+
// crashers so blacklist them altogether if (IsVistaOrLater() && GetDWriteFactory()) {
if (IsNotWin7PreRTM() && GetDWriteFactory()) {
pfl = new gfxDWriteFontList(); pfl = new gfxDWriteFontList();
if (NS_SUCCEEDED(pfl->InitFontList())) { if (NS_SUCCEEDED(pfl->InitFontList())) {
return pfl; return pfl;

View file

@ -179,13 +179,6 @@ IsWin11OrLater()
return IsWindows10BuildOrLater(WinBuild::Win11RTM); return IsWindows10BuildOrLater(WinBuild::Win11RTM);
} }
MOZ_ALWAYS_INLINE bool
IsNotWin7PreRTM()
{
return IsWin7SP1OrLater() || !IsWin7OrLater() ||
IsWindowsBuildOrLater(7600);
}
MOZ_ALWAYS_INLINE bool MOZ_ALWAYS_INLINE bool
IsWin7AndPre2000Compatible() { IsWin7AndPre2000Compatible() {
/* /*