seanpaultaylor 11 سال پیش
والد
کامیت
2b59acc2cc
2فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  1. 1 1
      gameplay/src/Control.cpp
  2. 0 2
      gameplay/src/Theme.cpp

+ 1 - 1
gameplay/src/Control.cpp

@@ -67,7 +67,7 @@ void Control::initialize(const char* typeName, Theme::Style* style, Properties*
             // The passed in style is our parent control's style : attempt to load our style from it.
             // The passed in style is our parent control's style : attempt to load our style from it.
             _style = style->getTheme()->getStyle(styleName);
             _style = style->getTheme()->getStyle(styleName);
         }
         }
-        else
+        if (!_style)
         {
         {
             // Use an empty style from our parent's theme
             // Use an empty style from our parent's theme
             _style = style->getTheme()->getEmptyStyle();
             _style = style->getTheme()->getEmptyStyle();

+ 0 - 2
gameplay/src/Theme.cpp

@@ -72,8 +72,6 @@ Theme* Theme::getDefault()
 
 
         if (!__defaultTheme)
         if (!__defaultTheme)
         {
         {
-            GP_WARN("No default theme detected.");
-
             // Create an empty theme so that UI's with no theme don't just crash
             // Create an empty theme so that UI's with no theme don't just crash
             __defaultTheme = new Theme();
             __defaultTheme = new Theme();
             unsigned int color = 0x00000000;
             unsigned int color = 0x00000000;