Selaa lähdekoodia

Merge pull request #466 from blackberry-gaming/next-ablake

Next ablake
Sean Paul Taylor 13 vuotta sitten
vanhempi
sitoutus
131e43ea7e
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  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()