Ticket #51016: patch-src-gle-gle-poppler.cpp.diff
File patch-src-gle-gle-poppler.cpp.diff, 726 bytes (added by ryandesign (Ryan Carsten Schmidt), 9 years ago) |
---|
-
src/gle/gle-poppler.cpp
old new 194 194 boolean gle_jpeg_empty_output_buffer(j_compress_ptr cinfo) { 195 195 gle_jpeg_term_destination(cinfo); 196 196 gle_jpeg_init_destination(cinfo); 197 return true;197 return TRUE; 198 198 } 199 199 200 200 void gle_jpeg_memory_dest(j_compress_ptr cinfo, JOCTET* buffer, GLEWriteFuncAndClosure writeCallback) { … … 237 237 cinfo.in_color_space = JCS_RGB; 238 238 } 239 239 jpeg_set_defaults(&cinfo); 240 jpeg_start_compress(&cinfo, true);240 jpeg_start_compress(&cinfo, TRUE); 241 241 JSAMPROW row = new JSAMPLE[cinfo.input_components * width]; 242 242 JSAMPROW row_pointer[1]; 243 243 row_pointer[0] = row;