You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-strategy/scorched3d/files/scorched3d-44-jpeg9.patch

21 lines
614 B

--- a/src/common/image/ImageJpgFactory.cpp.old 2014-12-03 09:52:03.306552513 +0100
+++ b/src/common/image/ImageJpgFactory.cpp 2014-12-03 09:53:22.117786304 +0100
@@ -79,7 +79,7 @@
src->next_input_byte = FakeEOI;
src->bytes_in_buffer = 2;
- return TRUE;
+ return (boolean)TRUE;
}
METHODDEF(void)
@@ -166,7 +166,7 @@
src->bytes_in_buffer = buffer.getBufferUsed();
src->next_input_byte = (JOCTET *) buffer.getBuffer();
- jpeg_read_header(&cinfo, TRUE);
+ jpeg_read_header(&cinfo, (boolean)TRUE);
jpeg_start_decompress(&cinfo);
if ((cinfo.output_components == 3 && !readalpha) ||