diff options
author | Marius Bakke <mbakke@fastmail.com> | 2020-05-06 23:37:40 +0200 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2020-05-06 23:37:40 +0200 |
commit | c263cfdcde0402cf44be7b14841d567f00e0af11 (patch) | |
tree | 311052b6ad6e391571f4e45631f5c3ca991b0cda /gnu/packages/patches/warsow-qfusion-fix-bool-return-type.patch | |
parent | 3b7f3108e0ebd459ec9c75717988fc61755e7185 (diff) | |
parent | 13c18af1d835db11f3f4cf34e65c7da706625a3f (diff) | |
download | patches-c263cfdcde0402cf44be7b14841d567f00e0af11.tar patches-c263cfdcde0402cf44be7b14841d567f00e0af11.tar.gz |
Merge branch 'master' into core-updates
Diffstat (limited to 'gnu/packages/patches/warsow-qfusion-fix-bool-return-type.patch')
-rw-r--r-- | gnu/packages/patches/warsow-qfusion-fix-bool-return-type.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/packages/patches/warsow-qfusion-fix-bool-return-type.patch b/gnu/packages/patches/warsow-qfusion-fix-bool-return-type.patch new file mode 100644 index 0000000000..ec22377446 --- /dev/null +++ b/gnu/packages/patches/warsow-qfusion-fix-bool-return-type.patch @@ -0,0 +1,22 @@ +diff --git a/source/ref_gl/r_imagelib.cpp b/source/ref_gl/r_imagelib.cpp +index 418028a..f76916b 100644 +--- a/source/ref_gl/r_imagelib.cpp ++++ b/source/ref_gl/r_imagelib.cpp +@@ -762,7 +762,7 @@ static void q_jpg_noop( j_decompress_ptr cinfo ) { + + static boolean q_jpg_fill_input_buffer( j_decompress_ptr cinfo ) { + Com_DPrintf( "Premature end of jpeg file\n" ); +- return 1; ++ return TRUE; + } + + static void q_jpg_skip_input_data( j_decompress_ptr cinfo, long num_bytes ) { +@@ -955,7 +955,7 @@ bool WriteJPG( const char *name, r_imginfo_t *info, int quality ) { + } + + // start compression +- qjpeg_start_compress( &cinfo, true ); ++ qjpeg_start_compress( &cinfo, TRUE ); + + // feed scanline data + w3 = cinfo.image_width * info->samples; |