dmuratshin 9 years ago
parent
commit
09b9f4b064
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/HelloFreeType/src/example.cpp

+ 2 - 2
examples/HelloFreeType/src/example.cpp

@@ -72,7 +72,7 @@ public:
 #endif
 #endif
         style.color = Color::Crimson;
         style.color = Color::Crimson;
         style.vAlign = TextStyle::VALIGN_MIDDLE;
         style.vAlign = TextStyle::VALIGN_MIDDLE;
-        style.hAlign = TextStyle::HALIGN_CENTER;
+        style.hAlign = TextStyle::HALIGN_MIDDLE;
         style.baselineScale = 0.7f;
         style.baselineScale = 0.7f;
 
 
         //apply our custom option
         //apply our custom option
@@ -136,7 +136,7 @@ public:
 
 
         //and remove sprite from tree when tweenQueue is empty
         //and remove sprite from tree when tweenQueue is empty
         //if you don't hold any references to sprite it would be deleted automatically
         //if you don't hold any references to sprite it would be deleted automatically
-        tweenQueue->setDetachActor(true);
+        tweenQueue->detachWhenDone();
     }
     }
 };
 };
 //declare spMainActor as intrusive_ptr holder of MainActor
 //declare spMainActor as intrusive_ptr holder of MainActor