1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/hyprpaper/hotfix-libjpeg.patch
3 # Copyright (C) 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- ./src/helpers/Jpeg.cpp.vanilla 2024-06-24 23:51:14.255231102 +0200
15 +++ ./src/helpers/Jpeg.cpp 2024-06-24 23:54:08.613236423 +0200
17 decompressStruct.err = jpeg_std_error(&errorManager);
18 jpeg_create_decompress(&decompressStruct);
19 jpeg_mem_src(&decompressStruct, (const unsigned char*)imageRawData, fileInfo.st_size);
20 - jpeg_read_header(&decompressStruct, true);
21 + jpeg_read_header(&decompressStruct, (boolean)true);
23 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
24 - decompressStruct.out_color_space = JCS_EXT_BGRA;
25 + //decompressStruct.out_color_space = JCS_BGRA;
27 - decompressStruct.out_color_space = JCS_EXT_ARGB;
28 + //decompressStruct.out_color_space = JCS_ARGB;