Procházet zdrojové kódy

Fixing the particles bar-descriptor.
Enabling vsync in particles sample.
Adding check to Label::setText() before setting control dirty.

Adam Blake před 13 roky
rodič
revize
f57a56991b
1 změnil soubory, kde provedl 5 přidání a 2 odebrání
  1. 5 2
      gameplay/src/Label.cpp

+ 5 - 2
gameplay/src/Label.cpp

@@ -58,8 +58,11 @@ void Label::setText(const char* text)
 {
     assert(text);
 
-    _text = text;
-    _dirty = true;
+    if (strcmp(text, _text.c_str()) != 0)
+    {
+        _text = text;
+        _dirty = true;
+    }
 }
 
 const char* Label::getText()