From 6d2a92c059001c023a9d3f7e6bfc65ce0346e5ef Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 13 May 2006 16:45:56 +0000 Subject: just a minor change --- src/FbTk/Font.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/FbTk/Font.cc b/src/FbTk/Font.cc index 42e33c1..1e89180 100644 --- a/src/FbTk/Font.cc +++ b/src/FbTk/Font.cc @@ -99,13 +99,13 @@ typedef FontCache::iterator FontCacheIt; FontCache font_cache; -void resetEffects(FbTk::Font* font) { - font->setHalo(false); - font->setHaloColor(FbTk::Color("white", DefaultScreen(FbTk::App::instance()->display()))); - font->setShadow(false); - font->setShadowColor(FbTk::Color("black", DefaultScreen(FbTk::App::instance()->display()))); - font->setShadowOffY(2); - font->setShadowOffX(2); +void resetEffects(FbTk::Font& font) { + font.setHalo(false); + font.setHaloColor(FbTk::Color("white", DefaultScreen(FbTk::App::instance()->display()))); + font.setShadow(false); + font.setShadowColor(FbTk::Color("black", DefaultScreen(FbTk::App::instance()->display()))); + font.setShadowOffY(2); + font.setShadowOffX(2); } }; // end nameless namespace @@ -178,7 +178,7 @@ bool Font::load(const std::string &name) { (cache_entry = font_cache.find(lookup_entry->second)) != font_cache.end()) { m_fontstr = cache_entry->first; m_fontimp = cache_entry->second; - resetEffects(this); + resetEffects(*this); return true; } @@ -197,7 +197,7 @@ bool Font::load(const std::string &name) { m_fontstr = cache_entry->first; m_fontimp = cache_entry->second; lookup_map[name] = m_fontstr; - resetEffects(this); + resetEffects(*this); return true; } @@ -222,7 +222,7 @@ bool Font::load(const std::string &name) { m_fontimp = tmp_font; font_cache[(*name_it)] = tmp_font; m_fontstr = name; - resetEffects(this); + resetEffects(*this); return true; } -- cgit v0.11.2