From bfe76b75685f9eb6f56e0f8a3114cb390910ed84 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Fri, 6 Sep 2024 12:40:45 +0200 Subject: [PATCH] ui: disable for now, gtk does not like cross-calls --- src/process_pipeline.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/process_pipeline.c b/src/process_pipeline.c index 1a5e4d4..b909121 100644 --- a/src/process_pipeline.c +++ b/src/process_pipeline.c @@ -508,8 +508,8 @@ summarize() /* Gain */ gain = state_proc.gain.value / ((float) state_proc.gain.min); - if (1) /* dgain */ - gain *= state_proc.dgain.value / ((float) state_proc.dgain.min); + /* dgain */ + gain *= state_proc.dgain.value / ((float) state_proc.dgain.min); /* Focus */ diopt = (state_proc.focus.value-focus_inf) / ((float) state_proc.focus.max-focus_inf); @@ -525,7 +525,10 @@ summarize() sep, (float) (gain*100), sep, sep, 1/diopt); + /* Not sure what to do here. Looks like we need to call gtk + functions from main thread. notify_auto_status(buf); + */ } static void