X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgif.c;h=bf3f5fc73d2d5d2411e6311ffcf806ba366aa227;hb=2f9311c5cfa019e40c127df71e25659b641986d3;hp=bbeb6aba3baf73f0ea10d8eb2f319c057e50d900;hpb=e2d2518810a4ab32f6dfd32faa83869307b3aa3d;p=rocksndiamonds.git diff --git a/src/gif.c b/src/gif.c index bbeb6aba..bf3f5fc7 100644 --- a/src/gif.c +++ b/src/gif.c @@ -3,8 +3,8 @@ #define GIF_C -#include "xli.h" #include "gif.h" +#include "image.h" #define PUSH_PIXEL(p) \ { \ @@ -468,7 +468,7 @@ static int gifin_add_string(int p, int e) return GIFIN_SUCCESS; } -Image *gifLoad(char *fullname) +Image *Read_GIF_to_Image(char *fullname) { FILE *f; Image *image; @@ -492,17 +492,22 @@ Image *gifLoad(char *fullname) return(NULL); } + + + /* printf("%s:\n %dx%d %s%s image with %d colors at depth %d\n", fullname, gifin_img_width, gifin_img_height, (gifin_interlace_flag ? "interlaced " : ""), gif_version_name[gifin_version], (gifin_l_cmap_flag ? gifin_l_ncolors : gifin_g_ncolors), (gifin_l_cmap_flag ? gifin_l_pixel_bits : gifin_g_pixel_bits)); + */ + + image = newRGBImage(gifin_img_width, gifin_img_height, (gifin_l_cmap_flag ? gifin_l_pixel_bits : gifin_g_pixel_bits)); - image->title = dupString(fullname); /* if image has a local colormap, override global colormap */