소스 검색

ui: disable for now, gtk does not like cross-calls

Pavel Machek 2 달 전
부모
커밋
bfe76b7568
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      src/process_pipeline.c

+ 5 - 2
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