[gimp/wip/animation: 363/373] plug-ins: animation_renderer_get_buffer() expects a frame position.



commit 86aeb644978ee85417ef90b98870bd5ab8aa6919
Author: Jehan <jehan girinstud io>
Date:   Tue Aug 1 00:45:58 2017 +0200

    plug-ins: animation_renderer_get_buffer() expects a frame position.

 plug-ins/animation-play/core/animation-animatic.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/animation-play/core/animation-animatic.c 
b/plug-ins/animation-play/core/animation-animatic.c
index 0be36d2..46a0510 100644
--- a/plug-ins/animation-play/core/animation-animatic.c
+++ b/plug-ins/animation-play/core/animation-animatic.c
@@ -516,8 +516,12 @@ animation_animatic_create_frame (Animation *animation,
 
   if (panel > 0 && priv->combine[panel])
     {
+      gint prev_pos;
+
+      prev_pos = animation_animatic_get_position (ANIMATION_ANIMATIC (animation),
+                                                  panel - 1);
       backdrop = animation_renderer_get_buffer (ANIMATION_RENDERER (renderer),
-                                                panel - 1);
+                                                prev_pos);
     }
 
   buffer = normal_blend (preview_width, preview_height,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]