summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@ddlm.me>2019-03-13 17:24:32 -0700
committerCedric BAIL <cedric@ddlm.me>2019-03-13 17:24:32 -0700
commit6feba0405c6405c2b75591fb4d5a7acc295504f3 (patch)
treeb0d66b5a17915dd1a9f53131204809f2a893a93e
parent0f1d9a77e568bf94b4d502afd898ce0cc31b2a18 (diff)
Stop computing useless number.
-rw-r--r--src/bin/image_mask_10.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/bin/image_mask_10.c b/src/bin/image_mask_10.c
index eb2b8d5..c467691 100644
--- a/src/bin/image_mask_10.c
+++ b/src/bin/image_mask_10.c
@@ -57,17 +57,15 @@ static void _loop(double t, int f)
57{ 57{
58 int i; 58 int i;
59 static Evas_Map *m = NULL; 59 static Evas_Map *m = NULL;
60 Evas_Coord x, y, w, h; 60 Evas_Coord w, h;
61 if (!m) m = evas_map_new(4); 61 if (!m) m = evas_map_new(4);
62 for (i = 0; i < 1; i++) 62 for (i = 0; i < 1; i++)
63 { 63 {
64 w = win_w * 4; 64 w = win_w * 4;
65 h = win_h * 4; 65 h = win_h * 4;
66 x = (win_w / 2) - (w / 2); 66 evas_map_util_points_populate_from_geometry(m,
67 y = (win_h / 2) - (h / 2);
68 evas_map_util_points_populate_from_geometry(m,
69 -win_w, -win_h, 67 -win_w, -win_h,
70 win_w * 4, win_h * 4, 0); 68 w, h, 0);
71 evas_map_util_rotate(m, f, win_w / 2, win_h / 2); 69 evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
72 70
73 evas_object_map_enable_set(o_images[i], 1); 71 evas_object_map_enable_set(o_images[i], 1);