Author: ib
Date: Thu Oct 22 20:57:48 2026
New Revision: 38691
Log:
gui: make post-processing option and settings conditional on CONFIG_POSTPROC
This configuration macro wasn't previously accounted for.
Modified:
trunk/gui/app/cfg.c
trunk/gui/dialog/preferences.c
Modified: trunk/gui/app/cfg.c
==============================================================================
--- trunk/gui/app/cfg.c Wed Oct 21 22:02:52 2026 (r38690)
+++ trunk/gui/app/cfg.c Thu Oct 22 20:57:48 2026 (r38691)
@@ -120,7 +120,9 @@ static const m_option_t gui_opts[] = {
{ "cache", >kCacheOn, CONF_TYPE_FLAG, 0, 0, 1, NULL },
{ "cache_size", >kCacheSize, CONF_TYPE_INT, CONF_RANGE, 32, 0x7fffffff, NULL },
+#ifdef CONFIG_POSTPROC
{ "vf_pp", >kVfPP, CONF_TYPE_FLAG, 0, 0, 1, NULL },
+#endif
#ifdef CONFIG_DXR3
{ "vf_lavc", >kVfLAVC, CONF_TYPE_FLAG, 0, 0, 1, NULL },
Modified: trunk/gui/dialog/preferences.c
==============================================================================
--- trunk/gui/dialog/preferences.c Wed Oct 21 22:02:52 2026 (r38690)
+++ trunk/gui/dialog/preferences.c Thu Oct 22 20:57:48 2026 (r38691)
@@ -1143,6 +1143,9 @@ static GtkWidget * CreatePreferences( vo
old_auto_quality = auto_quality;
HSPPQualityadj=GTK_ADJUSTMENT( gtk_adjustment_new( auto_quality,0,100,1,0,0 ) );
HSPPQuality=gtkAddHScale( HSPPQualityadj,hbox5,0 );
+#ifndef CONFIG_POSTPROC
+ gtk_widget_set_sensitive(vbox602, FALSE);
+#endif
vbox602=gtkAddVBox(
gtkAddFrame( NULL,GTK_SHADOW_NONE,