From 126ae913efb3829c980a2151db5bbcfd68c5b39c Mon Sep 17 00:00:00 2001 From: Sebastian Geerken Date: Mon, 17 Jun 2013 10:56:43 +0200 Subject: Added gamma correction value to dw::core::ImgBuf. --- src/dicache.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/dicache.c') diff --git a/src/dicache.c b/src/dicache.c index 23721685..55232846 100644 --- a/src/dicache.c +++ b/src/dicache.c @@ -259,7 +259,8 @@ void a_Dicache_invalidate_entry(const DilloUrl *Url) * (By now, we'll use the image information despite the html tags --Jcid) */ void a_Dicache_set_parms(DilloUrl *url, int version, DilloImage *Image, - uint_t width, uint_t height, DilloImgType type) + uint_t width, uint_t height, DilloImgType type, + double gamma) { DICacheEntry *DicEntry; @@ -275,7 +276,7 @@ void a_Dicache_set_parms(DilloUrl *url, int version, DilloImage *Image, /* BUG: there's just one image-type now */ #define I_RGB 0 - DicEntry->v_imgbuf = a_Imgbuf_new(Image->dw, I_RGB, width, height); + DicEntry->v_imgbuf = a_Imgbuf_new(Image->dw, I_RGB, width, height, gamma); DicEntry->TotalSize = width * height * 3; DicEntry->width = width; -- cgit v1.2.3