]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Fix a use of FALSE in some JPEG code.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Apr 2021 13:00:54 +0000 (13:00 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Apr 2021 13:00:54 +0000 (13:00 +0000)
Should fix build for OS X.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13118 d7cf8633-e32d-0410-b094-e92efae38249

jpeg.c

diff --git a/jpeg.c b/jpeg.c
index 3791480718bbcc474053cb824dd5bfcdca66c2ac..881be47ab539dec479e1f0b9ed721c5467453cce 100644 (file)
--- a/jpeg.c
+++ b/jpeg.c
@@ -169,9 +169,9 @@ typedef struct {
   /* The decompressor output side may not use these variables. */
   int dc_tbl_no;                /* DC entropy table selector (0..3) */
   int ac_tbl_no;                /* AC entropy table selector (0..3) */
-  
+
   /* Remaining fields should be treated as private by applications. */
-  
+
   /* These values are computed during compression or decompression startup: */
   /* Component's size in DCT blocks.
    * Any dummy blocks added to complete an MCU are not counted; therefore
@@ -899,7 +899,7 @@ static size_t JPEG_try_SaveImage_to_Buffer (struct jpeg_compress_struct *cinfo,
        cinfo->in_color_space = JCS_RGB;
        cinfo->input_components = 3;
        qjpeg_set_defaults (cinfo);
-       qjpeg_set_quality (cinfo, quality, FALSE);
+       qjpeg_set_quality (cinfo, quality, false);
 
        cinfo->comp_info[0].h_samp_factor = 2;
        cinfo->comp_info[0].v_samp_factor = 2;
@@ -1017,7 +1017,7 @@ static void CompressedImageCache_Add(const char *imagename, size_t maxsize, void
 
        if(strlen(imagename) >= MAX_QPATH)
                return; // can't add this
-       
+
        i = (CompressedImageCacheItem*) Z_Malloc(sizeof(CompressedImageCacheItem));
        strlcpy(i->imagename, imagename, sizeof(i->imagename));
        i->maxsize = maxsize;