chore: code formattiing

This commit is contained in:
Gabor Kiss-Vamosi
2023-01-03 08:33:43 +01:00
parent 7fe3c48315
commit a9730c5ac0
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -257,7 +257,7 @@ read_application_ext(gd_GIF * gif)
if(loop_count == 0) {
gif->loop_count = 0;
}
else{
else {
gif->loop_count = loop_count + 1;
}
}
@@ -586,8 +586,8 @@ gd_get_frame(gd_GIF * gif)
dispose(gif);
f_gif_read(gif, &sep, 1);
while (sep != ',') {
if (sep == ';') {
while(sep != ',') {
if(sep == ';') {
f_gif_seek(gif, gif->anim_start, LV_FS_SEEK_SET);
if(gif->loop_count == 1 || gif->loop_count < 0) {
return 0;
@@ -596,7 +596,7 @@ gd_get_frame(gd_GIF * gif)
gif->loop_count--;
}
}
else if (sep == '!')
else if(sep == '!')
read_ext(gif);
else return -1;
f_gif_read(gif, &sep, 1);
+1 -1
View File
@@ -123,7 +123,7 @@ static void lv_gif_destructor(const lv_obj_class_t * class_p, lv_obj_t * obj)
LV_UNUSED(class_p);
lv_gif_t * gifobj = (lv_gif_t *) obj;
lv_img_cache_invalidate_src(&gifobj->imgdsc);
if(gifobj->gif )
if(gifobj->gif)
gd_close_gif(gifobj->gif);
lv_timer_del(gifobj->timer);
}