summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2021-12-25 17:31:46 +0100
committerKim Woelders <kim@woelders.dk>2021-12-26 11:00:14 +0100
commit2bbd3dc7f9b88ea27d58e98a83f2d28a71b0e046 (patch)
treec61a56a373e986b9f4f3d5e3296e472309800fc4 /src/lib
parent3a93e9a92a209c7c0c61aadf7be740ece573e020 (diff)
downloadimlib2-2bbd3dc7f9b88ea27d58e98a83f2d28a71b0e046.tar.gz
Updates for animated image handling
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Imlib2.h.in5
-rw-r--r--src/lib/image.h5
2 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/Imlib2.h.in b/src/lib/Imlib2.h.in
index 5e67aeb..b901ca4 100644
--- a/src/lib/Imlib2.h.in
+++ b/src/lib/Imlib2.h.in
@@ -613,8 +613,9 @@ typedef struct {
} Imlib_Frame_Info;
/* frame info flags */
-#define IMLIB_IMAGE_ANIMATED (1 << 0) /* Frames are an animated sequence */
-#define IMLIB_FRAME_CLEAR (1 << 1) /* Clear before rendering frame */
+#define IMLIB_IMAGE_ANIMATED (1 << 0) /* Frames are an animated sequence */
+#define IMLIB_FRAME_DISPOSE_CLEAR (1 << 1) /* Clear before rendering next frame */
+#define IMLIB_FRAME_BLEND (1 << 2) /* Blend current onto previous frame */
EAPI Imlib_Image imlib_load_image_frame(const char *file, int frame);
EAPI void imlib_image_get_frame_info(Imlib_Frame_Info * info);
diff --git a/src/lib/image.h b/src/lib/image.h
index de8e27e..904b1bd 100644
--- a/src/lib/image.h
+++ b/src/lib/image.h
@@ -30,8 +30,9 @@ enum _iflags {
typedef enum _iflags ImlibImageFlags;
/* Must match the ones in Imlib2.h.in */
-#define FF_IMAGE_ANIMATED (1 << 0) /* Frames are an animated sequence */
-#define FF_FRAME_CLEAR (1 << 1) /* Clear before rendering frame */
+#define FF_IMAGE_ANIMATED (1 << 0) /* Frames are an animated sequence */
+#define FF_FRAME_DISPOSE_CLEAR (1 << 1) /* Clear before rendering next frame */
+#define FF_FRAME_BLEND (1 << 2) /* Blend current onto previous frame */
typedef struct {
int left, right, top, bottom;