summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/imageviewer/gif/gif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/imageviewer/gif/gif.c b/apps/plugins/imageviewer/gif/gif.c
index 32c87c88d9..b78709556d 100644
--- a/apps/plugins/imageviewer/gif/gif.c
+++ b/apps/plugins/imageviewer/gif/gif.c
@@ -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,