diff options
Diffstat (limited to 'recipes-qt/qt5/qtwebengine/0001-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch')
-rw-r--r-- | recipes-qt/qt5/qtwebengine/0001-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/recipes-qt/qt5/qtwebengine/0001-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch b/recipes-qt/qt5/qtwebengine/0001-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch deleted file mode 100644 index 0e9ea724..00000000 --- a/recipes-qt/qt5/qtwebengine/0001-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch +++ /dev/null | |||
@@ -1,63 +0,0 @@ | |||
1 | From d559da6ab0834aeb7307008015b6232e586fea00 Mon Sep 17 00:00:00 2001 | ||
2 | From: Cleiton Bueno <cleitonrbueno@gmail.com> | ||
3 | Date: Thu, 24 Dec 2015 12:46:58 -0200 | ||
4 | Subject: [PATCH] chromium: Change false to FALSE and 1 to TRUE, FIX | ||
5 | qtwebengine compile | ||
6 | |||
7 | Signed-off-by: Cleiton Bueno <cleitonrbueno@gmail.com> | ||
8 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
9 | --- | ||
10 | chromium/ui/gfx/codec/jpeg_codec.cc | 12 ++++++------ | ||
11 | 1 file changed, 6 insertions(+), 6 deletions(-) | ||
12 | |||
13 | diff --git a/chromium/ui/gfx/codec/jpeg_codec.cc b/chromium/ui/gfx/codec/jpeg_codec.cc | ||
14 | index 6d926378be..738d3fdedf 100644 | ||
15 | --- a/chromium/ui/gfx/codec/jpeg_codec.cc | ||
16 | +++ b/chromium/ui/gfx/codec/jpeg_codec.cc | ||
17 | @@ -121,7 +121,7 @@ boolean EmptyOutputBuffer(jpeg_compress_struct* cinfo) { | ||
18 | // tell libjpeg where to write the next data | ||
19 | cinfo->dest->next_output_byte = &(*state->out)[state->image_buffer_used]; | ||
20 | cinfo->dest->free_in_buffer = state->out->size() - state->image_buffer_used; | ||
21 | - return 1; | ||
22 | + return TRUE; | ||
23 | } | ||
24 | |||
25 | // Cleans up the JpegEncoderState to prepare for returning in the final form. | ||
26 | @@ -262,7 +262,7 @@ bool JPEGCodec::Encode(const unsigned char* input, ColorFormat format, | ||
27 | cinfo.data_precision = 8; | ||
28 | |||
29 | jpeg_set_defaults(&cinfo); | ||
30 | - jpeg_set_quality(&cinfo, quality, 1); // quality here is 0-100 | ||
31 | + jpeg_set_quality(&cinfo, quality, TRUE); // quality here is 0-100 | ||
32 | |||
33 | // set up the destination manager | ||
34 | jpeg_destination_mgr destmgr; | ||
35 | @@ -274,7 +274,7 @@ bool JPEGCodec::Encode(const unsigned char* input, ColorFormat format, | ||
36 | JpegEncoderState state(output); | ||
37 | cinfo.client_data = &state; | ||
38 | |||
39 | - jpeg_start_compress(&cinfo, 1); | ||
40 | + jpeg_start_compress(&cinfo, TRUE); | ||
41 | |||
42 | // feed it the rows, doing necessary conversions for the color format | ||
43 | #ifdef JCS_EXTENSIONS | ||
44 | @@ -360,7 +360,7 @@ void InitSource(j_decompress_ptr cinfo) { | ||
45 | // set to a positive value if TRUE is returned. A FALSE return should only | ||
46 | // be used when I/O suspension is desired." | ||
47 | boolean FillInputBuffer(j_decompress_ptr cinfo) { | ||
48 | - return false; | ||
49 | + return FALSE; | ||
50 | } | ||
51 | |||
52 | // Skip data in the buffer. Since we have all the data at once, this operation | ||
53 | @@ -488,8 +488,8 @@ bool JPEGCodec::Decode(const unsigned char* input, size_t input_size, | ||
54 | cinfo.client_data = &state; | ||
55 | |||
56 | // fill the file metadata into our buffer | ||
57 | - if (jpeg_read_header(&cinfo, true) != JPEG_HEADER_OK) | ||
58 | - return false; | ||
59 | + if (jpeg_read_header(&cinfo, TRUE) != JPEG_HEADER_OK) | ||
60 | + return FALSE; | ||
61 | |||
62 | // we want to always get RGB data out | ||
63 | switch (cinfo.jpeg_color_space) { | ||