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

git pushed a commit to branch master
in repository legacy-imlib2.

View the commit online.

commit bfcaff39761f064938c5b3bd22846f0c62a93c0f
Author: Kim Woelders <[email protected]>
AuthorDate: Mon Nov 21 12:43:20 2022 +0100

    imlib2_view: Fix multiframe rendering detail
    
    On dispose, we must re-render saved before saving next.
---
 src/bin/imlib2_view.c | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/src/bin/imlib2_view.c b/src/bin/imlib2_view.c
index fc4426f..c67689b 100644
--- a/src/bin/imlib2_view.c
+++ b/src/bin/imlib2_view.c
@@ -202,7 +202,6 @@ anim_update(Imlib_Image im, const rect_t * up_in, rect_t * up_out, int flags)
    static const rect_t r_zero = { };
    static rect_t       r_prev = { };
    static Imlib_Image  im_prev = NULL;
-   Imlib_Image         im_save = NULL;
 
    if (!im)
      {
@@ -218,13 +217,6 @@ anim_update(Imlib_Image im, const rect_t * up_in, rect_t * up_out, int flags)
 
    imlib_context_set_image(fg_im);
 
-   if (flags & IMLIB_FRAME_DISPOSE_PREV)
-     {
-        Dprintf(" Save  %d,%d %dx%d\n", up_in->x, up_in->y, up_in->w, up_in->h);
-        im_save =
-           imlib_create_cropped_image(up_in->x, up_in->y, up_in->w, up_in->h);
-     }
-
    if (r_prev.w > 0)
      {
         /* "dispose" of (clear) previous area before rendering new */
@@ -260,7 +252,13 @@ anim_update(Imlib_Image im, const rect_t * up_in, rect_t * up_out, int flags)
      {
         *up_out = *up_in;
      }
-   im_prev = im_save;
+
+   if (flags & IMLIB_FRAME_DISPOSE_PREV)
+     {
+        Dprintf(" Save  %d,%d %dx%d\n", up_in->x, up_in->y, up_in->w, up_in->h);
+        im_prev =
+           imlib_create_cropped_image(up_in->x, up_in->y, up_in->w, up_in->h);
+     }
 
    if (flags & (IMLIB_FRAME_DISPOSE_CLEAR | IMLIB_FRAME_DISPOSE_PREV))
       r_prev = *up_in;          /* Clear/revert next time around */

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

Reply via email to