From e41a97b593e89647ed215ebe3c51b01db71bb146 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 30 Sep 2017 23:24:30 +0300 Subject: fixes #957 (Crash on opening "color and fonts" options in "fontoptions.cpp (96)) --- src/mir_app/src/FontOptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mir_app/src/FontOptions.cpp b/src/mir_app/src/FontOptions.cpp index 3f06d57471..511ee8e16c 100644 --- a/src/mir_app/src/FontOptions.cpp +++ b/src/mir_app/src/FontOptions.cpp @@ -93,7 +93,7 @@ struct DrawTextWithEffectParam int __inline DrawTextWithEffect(HDC hdc, LPCTSTR lpchText, int cchText, RECT * lprc, UINT dwDTFormat, FONTEFFECT * pEffect) { DrawTextWithEffectParam params; - static BYTE bIfServiceExists = ServiceExists(MS_DRAW_TEXT_WITH_EFFECT) ? 1 : 0; + BYTE bIfServiceExists = ServiceExists(MS_DRAW_TEXT_WITH_EFFECT) ? 1 : 0; if (pEffect == nullptr || pEffect->effectIndex == 0) return DrawText(hdc, lpchText, cchText, lprc, dwDTFormat); // If no effect specified draw by GDI it just more careful with ClearType -- cgit v1.2.3