diff options
author | John Hawthorn <jhawthor@uvic.ca> | 2008-09-13 00:02:38 -0700 |
---|---|---|
committer | John Hawthorn <jhawthor@uvic.ca> | 2008-09-13 00:02:38 -0700 |
commit | d9e9f33c3210b71c07c4268415ff9b1555819b3f (patch) | |
tree | 1574715591b8ae6cb08771ff19670b56a5c887a9 /src/gif.c | |
parent | 219d3d9d9c17db046755327054be8061bdb2bb7a (diff) | |
download | mirror-meh-d9e9f33c3210b71c07c4268415ff9b1555819b3f.tar.gz mirror-meh-d9e9f33c3210b71c07c4268415ff9b1555819b3f.tar.bz2 mirror-meh-d9e9f33c3210b71c07c4268415ff9b1555819b3f.zip |
Major changes. Optional XShm support, bilinear scaling, caching WIP
Diffstat (limited to 'src/gif.c')
-rw-r--r-- | src/gif.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -42,8 +42,8 @@ static struct image *gif_open(FILE *f){ g->f = f; g->gif = gif; - g->img.width = gif->SWidth; - g->img.height = gif->SHeight; + g->img.bufwidth = gif->SWidth; + g->img.bufheight = gif->SHeight; return (struct image *)g; } @@ -70,7 +70,7 @@ static int gif_read(struct image *img){ return 1; } - for(i = 0; i < img->width * img->height; i++){ + for(i = 0; i < img->bufwidth * img->bufheight; i++){ unsigned char idx = s->RasterBits[i]; img->buf[j++] = colormap[idx].Red; img->buf[j++] = colormap[idx].Green; |