aboutsummaryrefslogtreecommitdiffstats
path: root/src/gif.c
diff options
context:
space:
mode:
authorJohn Hawthorn <jhawthor@uvic.ca>2008-09-13 00:02:38 -0700
committerJohn Hawthorn <jhawthor@uvic.ca>2008-09-13 00:02:38 -0700
commitd9e9f33c3210b71c07c4268415ff9b1555819b3f (patch)
tree1574715591b8ae6cb08771ff19670b56a5c887a9 /src/gif.c
parent219d3d9d9c17db046755327054be8061bdb2bb7a (diff)
downloadmirror-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gif.c b/src/gif.c
index ae15418..8da6554 100644
--- a/src/gif.c
+++ b/src/gif.c
@@ -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;