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

git pushed a commit to branch master
in repository efl.

View the commit online.

commit d3c1301efa992e9daeb4002e39c9206f3600540e
Author: Vincent Torri <vto...@outlook.fr>
AuthorDate: Mon Oct 2 11:53:24 2023 +0200

    fix qoi saver when alpha is 0
---
 src/modules/evas/image_savers/qoi/evas_image_save_qoi.c | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/modules/evas/image_savers/qoi/evas_image_save_qoi.c b/src/modules/evas/image_savers/qoi/evas_image_save_qoi.c
index f8fa650c3c..22de82f710 100644
--- a/src/modules/evas/image_savers/qoi/evas_image_save_qoi.c
+++ b/src/modules/evas/image_savers/qoi/evas_image_save_qoi.c
@@ -117,11 +117,17 @@ save_image_qoi(RGBA_Image *im, const char *file, int quality EINA_UNUSED)
      {
         px.rgba.a = *(iter + 3);
         if (px.rgba.a == 0)
-          goto close_f;
-
-        px.rgba.b = *(iter + 0) * 255 / px.rgba.a;
-        px.rgba.g = *(iter + 1) * 255 / px.rgba.a;
-        px.rgba.r = *(iter + 2) * 255 / px.rgba.a;
+          {
+             px.rgba.b = *(iter + 0);
+             px.rgba.g = *(iter + 1);
+             px.rgba.r = *(iter + 2);
+          }
+        else
+          {
+             px.rgba.b = *(iter + 0) * 255 / px.rgba.a;
+             px.rgba.g = *(iter + 1) * 255 / px.rgba.a;
+             px.rgba.r = *(iter + 2) * 255 / px.rgba.a;
+          }
 
         if (px.v == px_prev.v)
           {

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

Reply via email to