summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-09-30 23:24:30 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-09-30 23:24:30 +0300
commite41a97b593e89647ed215ebe3c51b01db71bb146 (patch)
tree47faf2ac862a18ddba5c85a177104a57e40a9bde /src
parent398b0609a771490cc46dce7133b0ce766a50d997 (diff)
fixes #957 (Crash on opening "color and fonts" options in "fontoptions.cpp (96))
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/FontOptions.cpp2
1 files changed, 1 insertions, 1 deletions
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