]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/contrib/shape_android/src/org/ocera/orte/shape_android/SubscriberElement.java
Fix scaling.
[orte.git] / orte / contrib / shape_android / src / org / ocera / orte / shape_android / SubscriberElement.java
index f88f3280d10921d728bbc46f4180d801270cfcce..a16326ae5bd90a793588c7868a4d3eeec7429a14 100644 (file)
@@ -144,7 +144,7 @@ public class SubscriberElement extends SubscriptionCallback
                        this.shape.setShape(new OvalShape());
                        break;
                case 2:
-                       this.shape.setShape(new PathShape(PublisherShape.returnTrianglePath(), 96, 96));
+                       this.shape.setShape(new PathShape(PublisherShape.returnTrianglePath(), 2*PublisherActivity.SHAPE_WIDTH, 2*PublisherActivity.SHAPE_HEIGHT));
                        break;
                default:
                        this.shape.setShape(new RectShape());
@@ -240,6 +240,7 @@ public class SubscriberElement extends SubscriptionCallback
        public void setScale(int currentWidth, int currentHeight)
        {
                this.box.setScale(currentWidth, currentHeight);
+               this.setShape();
        }
 
 }