From 22fc1309c51ed7afc4c6a7aa946c196d01b9f1d3 Mon Sep 17 00:00:00 2001 From: Kristian Vos Date: Mon, 4 Nov 2024 15:04:30 +0100 Subject: [PATCH] Fix wrong rotation being used for DNG --- src/process_pipeline.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/process_pipeline.c b/src/process_pipeline.c index a3bc645..ec07cb7 100644 --- a/src/process_pipeline.c +++ b/src/process_pipeline.c @@ -1042,15 +1042,15 @@ static void save_dng(const uint8_t *image, char *fname, int count) { uint16_t orientation; - if (state_proc.device_rotation == 0) { + if (state_proc.camera_rotation == 0) { orientation = state_proc.mode->mirrored ? LIBDNG_ORIENTATION_TOPRIGHT : LIBDNG_ORIENTATION_TOPLEFT; - } else if (state_proc.device_rotation == 90) { + } else if (state_proc.camera_rotation == 90) { orientation = state_proc.mode->mirrored ? LIBDNG_ORIENTATION_RIGHTBOT : LIBDNG_ORIENTATION_LEFTBOT; - } else if (state_proc.device_rotation == 180) { + } else if (state_proc.camera_rotation == 180) { orientation = state_proc.mode->mirrored ? LIBDNG_ORIENTATION_BOTLEFT : LIBDNG_ORIENTATION_BOTRIGHT;