[gthumb: 1/2] raw: Make compatible with LibRaw 0.21
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb: 1/2] raw: Make compatible with LibRaw 0.21
- Date: Wed, 26 May 2021 05:40:41 +0000 (UTC)
commit 50848b6fa1dd2a1d1382cd9da934cc95c5ca7964
Author: Chris Mayo <aklhfex gmail com>
Date: Tue May 11 19:28:10 2021 +0100
raw: Make compatible with LibRaw 0.21
imgdata.rawparams is split from imgdata.params
https://github.com/LibRaw/LibRaw/blob/637b935bef/Changelog.txt#L49
extensions/raw_files/main.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/extensions/raw_files/main.c b/extensions/raw_files/main.c
index e58b2994..25829c12 100644
--- a/extensions/raw_files/main.c
+++ b/extensions/raw_files/main.c
@@ -226,7 +226,12 @@ _cairo_image_surface_create_from_raw (GInputStream *istream,
raw_data->params.output_tiff = FALSE;
raw_data->params.use_camera_wb = TRUE;
+
+#if LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(0, 21)
+ raw_data->rawparams.use_rawspeed = TRUE;
+#else
raw_data->params.use_rawspeed = TRUE;
+#endif
raw_data->params.highlight = FALSE;
raw_data->params.use_camera_matrix = TRUE;
raw_data->params.output_color = RAW_OUTPUT_COLOR_SRGB;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]