X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=jpeg.c;h=c85c90a681f825e586cd87d9898a25e2979b097e;hb=66971055da035d25f4c946a3e897ac637c5de2f6;hp=ebdab17ce65acef9e6b2edcf197e1dac3cc54606;hpb=d0d4509a66a143530db1f89ac0a1b079c4693e8e;p=xonotic%2Fdarkplaces.git diff --git a/jpeg.c b/jpeg.c index ebdab17c..c85c90a6 100644 --- a/jpeg.c +++ b/jpeg.c @@ -692,7 +692,7 @@ qboolean JPEG_SaveImage_preflipped (const char *filename, int width, int height, cinfo.in_color_space = JCS_RGB; cinfo.input_components = 3; qjpeg_set_defaults (&cinfo); - qjpeg_set_quality (&cinfo, scr_screenshot_jpeg_quality.value * 100, TRUE); + qjpeg_set_quality (&cinfo, (int)(scr_screenshot_jpeg_quality.value * 100), TRUE); qjpeg_start_compress (&cinfo, true); // Compress each scanline