зеркало из https://github.com/mozilla/gecko-dev.git
Bug 587293: When D2D is preffed off, disable DWrite if it wasn't explicitly preffed on. r=joedrew
This commit is contained in:
Родитель
7769ad7bd1
Коммит
666b9f9b26
|
@ -276,6 +276,11 @@ gfxWindowsPlatform::gfxWindowsPlatform()
|
|||
PRInt32 rmode;
|
||||
if (NS_SUCCEEDED(pref->GetIntPref("mozilla.widget.render-mode", &rmode))) {
|
||||
if (rmode >= 0 && rmode < RENDER_MODE_MAX) {
|
||||
#ifdef CAIRO_HAS_DWRITE_FONT
|
||||
if (rmode != RENDER_DIRECT2D && !useDirectWrite) {
|
||||
mDWriteFactory = nsnull;
|
||||
}
|
||||
#endif
|
||||
#ifndef CAIRO_HAS_DDRAW_SURFACE
|
||||
if (rmode == RENDER_DDRAW || rmode == RENDER_DDRAW_GL)
|
||||
rmode = RENDER_IMAGE_STRETCH24;
|
||||
|
|
Загрузка…
Ссылка в новой задаче