[swell-foop] Fix crash.



commit 64c5df58f835ee021b875ec7aa0c92be4374731c
Author: Arnaud B <arnaud bonatti gmail com>
Date:   Tue Oct 8 05:07:24 2019 +0000

    Fix crash.

 src/game-view.vala | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/src/game-view.vala b/src/game-view.vala
index a4c1b0b..5ca9b4b 100644
--- a/src/game-view.vala
+++ b/src/game-view.vala
@@ -397,9 +397,7 @@ private class TileActor : Clutter.Actor
         content = texture;
 
         set_content_gravity (Clutter.ContentGravity.CENTER);
-
-        pivot_point.x = 0.5f;
-        pivot_point.y = 0.5f;
+        set_pivot_point (0.5f, 0.5f);
     }
 
     /* Destroy the tile */
@@ -437,9 +435,7 @@ public class CursorActor : Clutter.Actor
         content = texture;
 
         set_content_gravity (Clutter.ContentGravity.CENTER);
-
-        pivot_point.x = 0.5f;
-        pivot_point.y = 0.5f;
+        set_pivot_point (0.5f, 0.5f);
     }
 }
 
@@ -460,8 +456,7 @@ public class ScoreActor : Clutter.Group
 
         add_child (label);
 
-        pivot_point.x = 0.5f;
-        pivot_point.y = 0.5f;
+        set_pivot_point (0.5f, 0.5f);
 
         this.scene_width = (float) width;
         this.scene_height = (float) height;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]