X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgifload.c;fp=src%2Fgifload.c;h=977678cdff307886a13e4a7d4d8a9b1b75ff1a3b;hb=d46a473059b29c03d44430dfc75f170e3eb7cf63;hp=1e1aebcd43cb3706f9594a2c0ee0b9890300a941;hpb=90155265aeb1ad295a7425df5468123d151f7512;p=rocksndiamonds.git diff --git a/src/gifload.c b/src/gifload.c index 1e1aebcd..977678cd 100644 --- a/src/gifload.c +++ b/src/gifload.c @@ -14,7 +14,7 @@ #ifndef MSDOS #include "gifload.h" -#include "xli.h" +#include "image.h" #ifdef DEBUG /* @@ -27,7 +27,6 @@ extern long Counter(void); - int Read_GIF_to_Pixmaps(Display *display, Window window, char *filename, Pixmap *pixmap, Pixmap *pixmap_mask) { @@ -43,7 +42,7 @@ int Read_GIF_to_Pixmaps(Display *display, Window window, char *filename, #endif /* load GIF file */ - if (!(image = gifLoad(filename))) + if (!(image = Read_GIF_to_Image(filename))) { printf("Loading GIF image failed -- maybe no GIF...\n"); exit(1); @@ -77,7 +76,7 @@ int Read_GIF_to_Pixmaps(Display *display, Window window, char *filename, depth = DefaultDepth(display, screen); /* convert internal image structure to X11 XImage */ - if (!(ximageinfo = imageToXImage(display, screen, visual, depth, image))) + if (!(ximageinfo = Image_to_XImage(display, screen, visual, depth, image))) { fprintf(stderr, "Cannot convert Image to XImage.\n"); exit(1); @@ -94,7 +93,7 @@ int Read_GIF_to_Pixmaps(Display *display, Window window, char *filename, XSetWindowColormap(display, window, ximageinfo->cmap); /* convert XImage to Pixmap */ - if ((*pixmap = ximageToPixmap(display, window, ximageinfo)) == None) + if ((*pixmap = XImage_to_Pixmap(display, window, ximageinfo)) == None) { fprintf(stderr, "Cannot convert XImage to Pixmap.\n"); exit(1); @@ -118,7 +117,7 @@ int Read_GIF_to_Pixmaps(Display *display, Window window, char *filename, #endif /* convert internal image structure to X11 XImage */ - if (!(ximageinfo_mask = imageToXImage(display, screen, visual, depth, + if (!(ximageinfo_mask = Image_to_XImage(display, screen, visual, depth, image_mask))) { fprintf(stderr, "Cannot convert Image to XImage.\n"); @@ -133,7 +132,7 @@ int Read_GIF_to_Pixmaps(Display *display, Window window, char *filename, #endif /* convert XImage to Pixmap */ - if ((*pixmap_mask = ximageToPixmap(display, window, ximageinfo_mask)) == None) + if ((*pixmap_mask = XImage_to_Pixmap(display, window, ximageinfo_mask)) == None) { fprintf(stderr, "Cannot convert XImage to Pixmap.\n"); exit(1);