diff options
author | Sebastian Geerken <devnull@localhost> | 2013-06-17 10:56:43 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-06-17 10:56:43 +0200 |
commit | 126ae913efb3829c980a2151db5bbcfd68c5b39c (patch) | |
tree | 8eb0e38bfc1fa28577a5cfabfb7ae93209a5b2f4 /src/dicache.c | |
parent | 4e96d8f79ecb97994cf446386ce0dd1a1368da44 (diff) |
Added gamma correction value to dw::core::ImgBuf.
Diffstat (limited to 'src/dicache.c')
-rw-r--r-- | src/dicache.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |