media-libs/freeimage: adjust libraw patch style for consistency

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2022-12-22 20:58:51 -05:00
parent 754d11521c
commit cfbae17669
2 changed files with 4 additions and 4 deletions

View File

@@ -3,9 +3,9 @@ https://bugs.gentoo.org/887467
+++ b/Source/FreeImage/PluginRAW.cpp
@@ -693,3 +693,7 @@
// (-s [0..N-1]) Select one raw image from input file
+ #if LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(0, 21)
+#if LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(0, 21)
+ RawProcessor->imgdata.rawparams.shot_select = 0;
+ #else
+#else
RawProcessor->imgdata.params.shot_select = 0;
+ #endif
+#endif
// (-w) Use camera white balance, if possible (otherwise, fallback to auto_wb)

View File

@@ -57,7 +57,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-3.18.0-libraw-0.20.0.patch
"${FILESDIR}"/${PN}-3.18.0-tiff-4.4.0.patch
"${FILESDIR}"/${PN}-3.18.0-null-to-false.patch
"${FILESDIR}"/${PN}-3.18.0-libraw-0.21.patch
"${FILESDIR}"/${PN}-3.18.0-libraw-0.21.0.patch
)
src_prepare() {