From 8c1ed009692c92201bfcfc68c17e42196d64dcd0 Mon Sep 17 00:00:00 2001 From: Bas Schouten Date: Wed, 1 Oct 2014 19:50:24 +0200 Subject: [PATCH] Bug 1075621: Support Direct2D 1.1 for ScaledFontDWrite::CopyGlyphsToBuilder. r=jrmuizel --- gfx/2d/ScaledFontDWrite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/2d/ScaledFontDWrite.cpp b/gfx/2d/ScaledFontDWrite.cpp index 41ea87453294..e1e1b7137f73 100644 --- a/gfx/2d/ScaledFontDWrite.cpp +++ b/gfx/2d/ScaledFontDWrite.cpp @@ -326,7 +326,7 @@ ScaledFontDWrite::GetPathForGlyphs(const GlyphBuffer &aBuffer, const DrawTarget void ScaledFontDWrite::CopyGlyphsToBuilder(const GlyphBuffer &aBuffer, PathBuilder *aBuilder, BackendType aBackendType, const Matrix *aTransformHint) { - if (aBackendType != BackendType::DIRECT2D) { + if (aBackendType != BackendType::DIRECT2D && aBackendType != BackendType::DIRECT2D1_1) { ScaledFontBase::CopyGlyphsToBuilder(aBuffer, aBuilder, aBackendType, aTransformHint); return; }