summaryrefslogtreecommitdiff
path: root/cocoa/thumbnail.m
diff options
context:
space:
mode:
authorSven Weidauer <sven.weidauer@gmail.com>2011-01-25 18:48:26 +0000
committerSven Weidauer <sven.weidauer@gmail.com>2011-01-25 18:48:26 +0000
commit37d15e2204fd54d0938e463436857117eff4e768 (patch)
tree08180dc7b00b1c53ea3845d1784d9d227da67edc /cocoa/thumbnail.m
parent620fd90fa7739e0a5bc23bca77033da747046c7e (diff)
downloadnetsurf-37d15e2204fd54d0938e463436857117eff4e768.tar.gz
netsurf-37d15e2204fd54d0938e463436857117eff4e768.tar.bz2
Fixing bitmap functions to return BYTES and not bits per pixel for bitmap_get_bpp
svn path=/trunk/netsurf/; revision=11487
Diffstat (limited to 'cocoa/thumbnail.m')
-rw-r--r--cocoa/thumbnail.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/thumbnail.m b/cocoa/thumbnail.m
index b6df608eb..290009e1e 100644
--- a/cocoa/thumbnail.m
+++ b/cocoa/thumbnail.m
@@ -30,7 +30,7 @@ bool thumbnail_create(struct hlcache_handle *content, struct bitmap *bitmap,
CGColorSpaceRef cspace = CGColorSpaceCreateWithName( kCGColorSpaceGenericRGB );
CGContextRef bitmapContext = CGBitmapContextCreate( bitmap_get_buffer( bitmap ),
bitmap_get_width( bitmap ), bitmap_get_height( bitmap ),
- bitmap_get_bpp( bitmap ) / 4,
+ bitmap_get_bpp( bitmap ) * 8 / 4,
bitmap_get_rowstride( bitmap ),
cspace, kCGImageAlphaNoneSkipLast );
CGColorSpaceRelease( cspace );