]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - jpeg.c
added ogg.o to WGL exe build
[xonotic/darkplaces.git] / jpeg.c
diff --git a/jpeg.c b/jpeg.c
index b65e04a49e8e042137161b655cb657fbf62e76c5..0d33281297e57fa94eccd176b75d19f169c5c43c 100644 (file)
--- a/jpeg.c
+++ b/jpeg.c
@@ -700,7 +700,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, 90, TRUE);  // 90% quality; FIXME: use a cvar
+       qjpeg_set_quality (&cinfo, scr_screenshot_jpeg_quality.value * 100, TRUE);
        qjpeg_start_compress (&cinfo, true);
 
        // Compress each scanline