forked from enlightenment/efl
evas/wayland_egl: Update this engine after flags and attributes move.
This commit is contained in:
parent
6a6f827e20
commit
868206826a
|
@ -3584,7 +3584,7 @@ eng_image_animated_get(void *data EINA_UNUSED, void *image)
|
|||
im = (Image_Entry *)gim->im;
|
||||
if (!im) return EINA_FALSE;
|
||||
|
||||
return im->flags.animated;
|
||||
return im->animated.animated;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -3597,8 +3597,8 @@ eng_image_animated_frame_count_get(void *data EINA_UNUSED, void *image)
|
|||
im = (Image_Entry *)gim->im;
|
||||
if (!im) return -1;
|
||||
|
||||
if (!im->flags.animated) return -1;
|
||||
return im->frame_count;
|
||||
if (!im->animated.animated) return -1;
|
||||
return im->animated.frame_count;
|
||||
}
|
||||
|
||||
static Evas_Image_Animated_Loop_Hint
|
||||
|
@ -3611,8 +3611,8 @@ eng_image_animated_loop_type_get(void *data EINA_UNUSED, void *image)
|
|||
im = (Image_Entry *)gim->im;
|
||||
if (!im) return EVAS_IMAGE_ANIMATED_HINT_NONE;
|
||||
|
||||
if (!im->flags.animated) return EVAS_IMAGE_ANIMATED_HINT_NONE;
|
||||
return im->loop_hint;
|
||||
if (!im->animated.animated) return EVAS_IMAGE_ANIMATED_HINT_NONE;
|
||||
return im->animated.loop_hint;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -3625,8 +3625,8 @@ eng_image_animated_loop_count_get(void *data EINA_UNUSED, void *image)
|
|||
im = (Image_Entry *)gim->im;
|
||||
if (!im) return -1;
|
||||
|
||||
if (!im->flags.animated) return -1;
|
||||
return im->loop_count;
|
||||
if (!im->animated.animated) return -1;
|
||||
return im->animated.loop_count;
|
||||
}
|
||||
|
||||
static double
|
||||
|
@ -3639,7 +3639,7 @@ eng_image_animated_frame_duration_get(void *data EINA_UNUSED, void *image, int s
|
|||
im = (Image_Entry *)gim->im;
|
||||
if (!im) return -1;
|
||||
|
||||
if (!im->flags.animated) return -1;
|
||||
if (!im->animated.animated) return -1;
|
||||
return evas_common_load_rgba_image_frame_duration_from_file(im, start_frame, frame_num);
|
||||
}
|
||||
|
||||
|
@ -3653,10 +3653,10 @@ eng_image_animated_frame_set(void *data EINA_UNUSED, void *image, int frame_inde
|
|||
im = (Image_Entry *)gim->im;
|
||||
if (!im) return EINA_FALSE;
|
||||
|
||||
if (!im->flags.animated) return EINA_FALSE;
|
||||
if (im->cur_frame == frame_index) return EINA_FALSE;
|
||||
if (!im->animated.animated) return EINA_FALSE;
|
||||
if (im->animated.cur_frame == frame_index) return EINA_FALSE;
|
||||
|
||||
im->cur_frame = frame_index;
|
||||
im->animated.cur_frame = frame_index;
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue