From 46087564d4184b28740b0c45c1bac199ab1942ec Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 16 Mar 2014 14:14:29 +0300 Subject: Improve theme usage. Removed instance method. --- src/text.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/text.cpp') diff --git a/src/text.cpp b/src/text.cpp index 27d794d33..caf5328d6 100644 --- a/src/text.cpp +++ b/src/text.cpp @@ -55,9 +55,9 @@ Text::Text(const std::string &text, const int x, const int y, if (!textManager) { textManager = new TextManager; - if (Theme::instance()) + if (theme) { - Theme::instance()->loadRect(mBubble, "bubble.xml", ""); + theme->loadRect(mBubble, "bubble.xml", ""); } else { -- cgit v1.2.3-60-g2f50