aboutsummaryrefslogtreecommitdiff
path: root/graphics/photoqt/files/patch-cplusplus_imageprovider_loader_loadimage__raw.h
blob: 7cdd88ff11c60a9327ba8625d815755c9ebdc71b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Fix build with libraw >= 0.21.0

--- cplusplus/imageprovider/loader/loadimage_raw.h.orig	2023-03-02 16:52:09 UTC
+++ cplusplus/imageprovider/loader/loadimage_raw.h
@@ -56,7 +56,11 @@ class LoadImageRaw { (public)
         // Since we don't care about manipulating RAW images but only want to display
         // them, we can optimise for speed
         raw.imgdata.params.user_qual = 2;
+#if LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(0, 21)
+        raw.imgdata.rawparams.use_rawspeed = 1;
+#else
         raw.imgdata.params.use_rawspeed = 1;
+#endif
         raw.imgdata.params.use_camera_wb = 1;
 
         // Open the RAW image