aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-11-14 22:39:55 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-11-14 22:39:55 +0000
commitadd98346bbb52ece2990211deade5cf6e38e2631 (patch)
treec8dfd26263123a6aff86fabf8c889da3f63ab6f3 /src
parentd3e7f724f06ea31d92714dd00e11038c30ccd47c (diff)
downloadimv-add98346bbb52ece2990211deade5cf6e38e2631.tar.gz
Don't use FreeImage_AllocateEx
Diffstat (limited to 'src')
-rw-r--r--src/image.c4
1 files changed, 1 insertions, 3 deletions
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;