From add98346bbb52ece2990211deade5cf6e38e2631 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Sat, 14 Nov 2015 22:39:55 +0000 Subject: Don't use FreeImage_AllocateEx --- src/image.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/image.c b/src/image.c index db07981..10f3c18 100644 --- a/src/image.c +++ b/src/image.c @@ -159,9 +159,7 @@ void imv_image_load_next_frame(struct imv_image *img) /* If this frame is inset, we need to expand it for compositing */ if(img->width != (int)FreeImage_GetWidth(frame32) || img->height != (int)FreeImage_GetHeight(frame32)) { - RGBQUAD color = {0,0,0,0}; - FIBITMAP *expanded = FreeImage_AllocateEx(img->width, img->height, 32, - &color, 0, NULL, 0, 0, 0); + FIBITMAP *expanded = FreeImage_Allocate(img->width, img->height, 32, 0,0,0); FreeImage_Paste(expanded, frame32, left, top, 255); FreeImage_Unload(frame32); frame32 = expanded; -- cgit v1.2.3