From 14a05d49432524a2bd5ad2ceccfb5f3724a851a6 Mon Sep 17 00:00:00 2001 From: Aloshi Date: Thu, 11 Apr 2013 16:33:12 -0500 Subject: [PATCH] Init/deinit theme-declared fonts. --- src/components/GuiTheme.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/GuiTheme.cpp b/src/components/GuiTheme.cpp index 8d5f6a47f..76d4a691a 100644 --- a/src/components/GuiTheme.cpp +++ b/src/components/GuiTheme.cpp @@ -438,6 +438,11 @@ void GuiTheme::init() { mComponentVector.at(i)->init(); } + + //fonts are special + if(mListFont) mListFont->init(); + if(mDescFont) mDescFont->init(); + if(mFastSelectFont) mFastSelectFont->init(); } void GuiTheme::deinit() @@ -446,5 +451,8 @@ void GuiTheme::deinit() { mComponentVector.at(i)->deinit(); } -} + if(mListFont) mListFont->deinit(); + if(mDescFont) mDescFont->deinit(); + if(mFastSelectFont) mFastSelectFont->deinit(); +}