[swell-foop/arnaudb/fix-crash] Fix crash.



commit c6eb9dc496b76d1a790bc1c3441e1f3b6ecd0919
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Oct 8 00:47:44 2019 +0200

    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]