X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgifload.c;fp=src%2Fgifload.c;h=f26ba5a1702349551b61668052e84b0a4919bbef;hb=e4566563844c4bcfc472159c9ae870941099708c;hp=89c06ae5d91a1c1154b76562dea1aaf1c07903bf;hpb=4b0f1eb4220d2dbe4cffb288f745661b32c96a5b;p=rocksndiamonds.git diff --git a/src/gifload.c b/src/gifload.c index 89c06ae5..f26ba5a1 100644 --- a/src/gifload.c +++ b/src/gifload.c @@ -26,7 +26,7 @@ extern int test_picture_count; -int Read_GIF_to_Image(Display *display, Window window, char *filename) +int Read_GIF_to_Pixmaps(Display *display, Window window, char *filename) { Image *image, *image_mask; XImageInfo *ximageinfo, *ximageinfo_mask; @@ -64,7 +64,9 @@ int Read_GIF_to_Image(Display *display, Window window, char *filename) if (ximageinfo->cmap != DefaultColormap(display, screen)) { + /* printf("--> '%s' gets own colormap\n", filename); + */ XSetWindowColormap(display, window, ximageinfo->cmap); } @@ -76,9 +78,9 @@ int Read_GIF_to_Image(Display *display, Window window, char *filename) exit(1); } - + /* printf("test_picture_count == %d\n", test_picture_count); - + */ test_pix[test_picture_count] = pixmap;