mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset aced11aac8b8 (bug 1210250) for Windows build bustage
This commit is contained in:
parent
6c7c0efbe7
commit
534aaa1373
@ -101,13 +101,11 @@ DCFromDrawTarget::DCFromDrawTarget(DrawTarget& aDrawTarget)
|
||||
cairo_win32_scaled_font_select_font(scaled, mDC);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!mDC) {
|
||||
// Get the whole screen DC:
|
||||
mDC = GetDC(nullptr);
|
||||
SetGraphicsMode(mDC, GM_ADVANCED);
|
||||
mNeedsRelease = true;
|
||||
if (!mDC) {
|
||||
mDC = GetDC(nullptr);
|
||||
SetGraphicsMode(mDC, GM_ADVANCED);
|
||||
mNeedsRelease = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -686,13 +684,10 @@ gfxPlatformFontList*
|
||||
gfxWindowsPlatform::CreatePlatformFontList()
|
||||
{
|
||||
gfxPlatformFontList *pfl;
|
||||
|
||||
#ifdef CAIRO_HAS_DWRITE_FONT
|
||||
// bug 630201 - older pre-RTM versions of Direct2D/DirectWrite cause odd
|
||||
// crashers so blacklist them altogether
|
||||
if (IsNotWin7PreRTM() && GetDWriteFactory() &&
|
||||
// Skia doesn't support DirectWrite fonts yet.
|
||||
(GetContentBackend() != BackendType::SKIA)) {
|
||||
if (IsNotWin7PreRTM() && GetDWriteFactory()) {
|
||||
pfl = new gfxDWriteFontList();
|
||||
if (NS_SUCCEEDED(pfl->InitFontList())) {
|
||||
return pfl;
|
||||
|
Loading…
Reference in New Issue
Block a user