This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository elimine.

View the commit online.

commit fd4be54d11b7eb787185c74b2dfd8e76e12e755f
Author: Vincent Torri <vto...@outlook.fr>
AuthorDate: Thu Jul 10 20:39:30 2025 +0200

    add a smiley icon
---
 src/bin/elimine.c | 2 +-
 src/bin/icon.c    | 5 +++--
 src/bin/icon.h    | 3 ++-
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/bin/elimine.c b/src/bin/elimine.c
index 2263ed0..2744d85 100644
--- a/src/bin/elimine.c
+++ b/src/bin/elimine.c
@@ -352,7 +352,7 @@ _cb_mouse_down(void *ctx_, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
     c = ev->output.x / (16 * ctx->pixel_sz);
     l = (ev->output.y - 32 * ctx->pixel_sz) / (16 * ctx->pixel_sz);
     TILE(TILE_NOTHING, l, c);
-    evas_object_image_data_set(ctx->smiley, smiley_bmp_get(SMILEY_CLICKED));
+    evas_object_image_data_set(ctx->smiley, smiley_bmp_get(SMILEY_SURPRISED));
     evas_object_image_pixels_dirty_set(ctx->smiley, EINA_TRUE);
     int x, y, w, h;
     evas_object_geometry_get(cph, &x, &y, &w, &h);
diff --git a/src/bin/icon.c b/src/bin/icon.c
index ef538c2..f99579f 100644
--- a/src/bin/icon.c
+++ b/src/bin/icon.c
@@ -51,8 +51,9 @@ static Offset tile_offset[TILE_COUNT] =
 
 static Offset smiley_offset[SMILEY_COUNT] =
 {
-    { 28, 0  }, /* normal */
-    { 28, 28 }, /* clicked */
+    { 56, 0  }, /* normal */
+    { 28, 0  }, /* normal clicked */
+    { 28, 28 }, /* surprised */
     { 0,  0  }, /* lost */
     { 0,  28 }, /* win */
 };
diff --git a/src/bin/icon.h b/src/bin/icon.h
index 271d3ad..3e8d318 100644
--- a/src/bin/icon.h
+++ b/src/bin/icon.h
@@ -44,7 +44,8 @@ typedef enum
 typedef enum
 {
     SMILEY_NORMAL,
-    SMILEY_CLICKED,
+    SMILEY_NORMAL_CLICKED,
+    SMILEY_SURPRISED,
     SMILEY_LOST,
     SMILEY_WIN,
     SMILEY_COUNT

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to