diff options
Diffstat (limited to 'src/FbTk/Font.cc')
-rw-r--r-- | src/FbTk/Font.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/FbTk/Font.cc b/src/FbTk/Font.cc index 544ddc2..c855d10 100644 --- a/src/FbTk/Font.cc +++ b/src/FbTk/Font.cc | |||
@@ -91,10 +91,11 @@ typedef FontCache::iterator FontCacheIt; | |||
91 | 91 | ||
92 | 92 | ||
93 | void resetEffects(FbTk::Font& font) { | 93 | void resetEffects(FbTk::Font& font) { |
94 | int nr_scr = DefaultScreen(FbTk::App::instance()->display()); | ||
94 | font.setHalo(false); | 95 | font.setHalo(false); |
95 | font.setHaloColor(FbTk::Color("white", DefaultScreen(FbTk::App::instance()->display()))); | 96 | font.setHaloColor(FbTk::Color("white", nr_scr)); |
96 | font.setShadow(false); | 97 | font.setShadow(false); |
97 | font.setShadowColor(FbTk::Color("black", DefaultScreen(FbTk::App::instance()->display()))); | 98 | font.setShadowColor(FbTk::Color("black", nr_scr)); |
98 | font.setShadowOffY(2); | 99 | font.setShadowOffY(2); |
99 | font.setShadowOffX(2); | 100 | font.setShadowOffX(2); |
100 | } | 101 | } |