ImageViewer: Fix gifs sporadically crashing on targets

ensure 32bit alignment

Change-Id: I11e0df599403a888fa63dab8f1c5a94a5f35d9ad
This commit is contained in:
Christian Soffke 2021-12-15 16:49:00 +01:00 committed by Aidan MacDonald
parent fbdcfca085
commit 18358ed541

View file

@ -72,7 +72,7 @@ static void draw_image_rect(struct image_info *info,
static int img_mem(int ds)
{
struct gif_decoder *p_decoder = &decoder;
return p_decoder->native_img_size/ds;
return (p_decoder->native_img_size/ds + 3) & ~3;
}
static int load_image(char *filename, struct image_info *info,