summaryrefslogtreecommitdiff
path: root/src/png.c
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-06-17 10:56:43 +0200
committerSebastian Geerken <devnull@localhost>2013-06-17 10:56:43 +0200
commit126ae913efb3829c980a2151db5bbcfd68c5b39c (patch)
tree8eb0e38bfc1fa28577a5cfabfb7ae93209a5b2f4 /src/png.c
parent4e96d8f79ecb97994cf446386ce0dd1a1368da44 (diff)
Added gamma correction value to dw::core::ImgBuf.
Diffstat (limited to 'src/png.c')
-rw-r--r--src/png.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/png.c b/src/png.c
index 995725cd..767df994 100644
--- a/src/png.c
+++ b/src/png.c
@@ -201,9 +201,10 @@ Png_datainfo_callback(png_structp png_ptr, png_infop info_ptr)
png->linebuf = dMalloc(3 * png->width);
/* Initialize the dicache-entry here */
+ /** \todo Gamma for PNG? */
a_Dicache_set_parms(png->url, png->version, png->Image,
(uint_t)png->width, (uint_t)png->height,
- DILLO_IMG_TYPE_RGB);
+ DILLO_IMG_TYPE_RGB, 2.2);
}
static void