diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gif.c | 3 | ||||
-rw-r--r-- | src/jpeg.c | 2 | ||||
-rw-r--r-- | src/png.c | 2 |
3 files changed, 4 insertions, 3 deletions
@@ -816,7 +816,8 @@ static size_t Gif_do_img_desc(DilloGif *gif, void *Buf, /** \todo Gamma for GIF? */ a_Dicache_set_parms(gif->url, gif->version, gif->Image, - gif->Width, gif->Height, DILLO_IMG_TYPE_INDEXED, 2.2); + gif->Width, gif->Height, DILLO_IMG_TYPE_INDEXED, + 1 / 2.2); Flags = buf[8]; @@ -303,7 +303,7 @@ static void Jpeg_write(DilloJpeg *jpeg, void *Buf, uint_t BufSize) a_Dicache_set_parms(jpeg->url, jpeg->version, jpeg->Image, (uint_t)jpeg->cinfo.image_width, (uint_t)jpeg->cinfo.image_height, - type, 2.2); + type, 1 / 2.2); /* decompression step 4 (see libjpeg.doc) */ jpeg->state = DILLO_JPEG_STARTING; @@ -204,7 +204,7 @@ Png_datainfo_callback(png_structp png_ptr, png_infop info_ptr) /** \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, 2.2); + DILLO_IMG_TYPE_RGB, 1 / 2.2); } static void |