mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1156742 Part 21: Use GetDirect3D11Device instead of DrawTargetD2D::GetDWriteFactory to determine if DWrite fonts should be used. r=Bas
This method will allow for acceleration being disabled through prefs and blacklisting.
This commit is contained in:
parent
eee890084b
commit
7b797524e1
@ -557,7 +557,7 @@ Factory::CreateScaledFontForTrueTypeData(uint8_t *aData, uint32_t aSize,
|
||||
RefPtr<ScaledFontBase> scaledFont;
|
||||
|
||||
#ifdef WIN32
|
||||
if (DrawTargetD2D::GetDWriteFactory()) {
|
||||
if (GetDirect3D11Device()) {
|
||||
scaledFont = new ScaledFontDWrite(aData, aSize, aFaceIndex, aGlyphSize);
|
||||
} else {
|
||||
scaledFont = new ScaledFontWin(aData, aSize, aFaceIndex, aGlyphSize);
|
||||
|
Loading…
Reference in New Issue
Block a user