aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Hawthorn <jhawthor@uvic.ca>2008-06-18 15:58:44 -0700
committerJohn Hawthorn <jhawthor@uvic.ca>2008-06-18 15:58:44 -0700
commit6b71109ebaf8d9b5734e14303a53782f70d955e8 (patch)
tree704cbf0648039c31c9810f3dcb4b2f025acc6af9
parenta9b03212984cb3821b16a6bd3e5d8686933ebd0e (diff)
downloadmirror-meh-6b71109ebaf8d9b5734e14303a53782f70d955e8.tar.gz
mirror-meh-6b71109ebaf8d9b5734e14303a53782f70d955e8.tar.bz2
mirror-meh-6b71109ebaf8d9b5734e14303a53782f70d955e8.zip
last minute mistake
-rw-r--r--src/bmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bmp.c b/src/bmp.c
index 046fad6..b641563 100644
--- a/src/bmp.c
+++ b/src/bmp.c
@@ -82,7 +82,7 @@ struct image *bmp_open(FILE *f){
}
if(b->bpp >= 16){
- b->rowwidth = b->img.width * b->bpp;
+ b->rowwidth = b->img.width * b->bpp / 8;
}else{
int i;
b->colours = malloc(b->ncolors * sizeof(struct rgb_t));