Browse Source

Actor::calcBounds2 virtual now

dmuratshin 9 years ago
parent
commit
28a6eb212a
2 changed files with 4 additions and 3 deletions
  1. 1 1
      oxygine/src/Actor.h
  2. 3 2
      oxygine/src/VisualStyle.h

+ 1 - 1
oxygine/src/Actor.h

@@ -340,7 +340,7 @@ namespace oxygine
         virtual void onRemovedFromStage() {}
         virtual void transformUpdated() {}
         virtual bool getBounds(RectF&) const { return false; }
-        void calcBounds2(RectF& bounds, const Transform& transform) const;
+        virtual void calcBounds2(RectF& bounds, const Transform& transform) const;
 
 
         typedef intrusive_list<spActor> children;

+ 3 - 2
oxygine/src/VisualStyle.h

@@ -44,8 +44,9 @@ namespace oxygine
 
         typedef Property<Color, const Color&, VStyleActor, &VStyleActor::getColor, &VStyleActor::setColor> TweenColor;
 
-    protected:
-        bool getBounds(RectF& b) const  OVERRIDE {b = getDestRect() ;  return true; }
+		bool getBounds(RectF& b) const  OVERRIDE { b = getDestRect();  return true; }
+
+    protected:        
         VisualStyle _vstyle;
     };