From 81bee98bb3ed6ab21c5bc2a1604311faff5b6e14 Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 12 Apr 2021 13:00:54 +0000 Subject: [PATCH] Fix a use of FALSE in some JPEG code. Should fix build for OS X. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13118 d7cf8633-e32d-0410-b094-e92efae38249 --- jpeg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jpeg.c b/jpeg.c index 37914807..881be47a 100644 --- 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; -- 2.39.2