summaryrefslogtreecommitdiffstats
path: root/Gui/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'Gui/interface.c')
-rw-r--r--Gui/interface.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/Gui/interface.c b/Gui/interface.c
index 662db96b90..e6eba8e23b 100644
--- a/Gui/interface.c
+++ b/Gui/interface.c
@@ -87,7 +87,8 @@ void guiInit( void )
gtkAOOSSDevice=strdup( PATH_DEV_DSP );
gtkInit();
-
+ wsXInit( (void *)mDisplay );
+
cfg_read();
appInit( (void*)mDisplay );
@@ -298,6 +299,18 @@ void guiGetEvent( int type,char * arg )
}
break;
case guiSetValues:
+// -- video
+ if ( arg )
+ {
+ if ( vo_gamma_brightness == 1000 )
+ { vo_gamma_brightness=0; get_video_colors( (void *)arg,"brightness",&vo_gamma_brightness ); }
+ if ( vo_gamma_contrast == 1000 )
+ { vo_gamma_contrast=0; get_video_colors( (void *)arg,"contrast",&vo_gamma_contrast ); }
+ if ( vo_gamma_hue == 1000 )
+ { vo_gamma_hue=0; get_video_colors( (void *)arg,"hue",&vo_gamma_hue ); }
+ if ( vo_gamma_saturation == 1000 )
+ { vo_gamma_saturation=0; get_video_colors( (void *)arg,"saturation",&vo_gamma_saturation ); }
+ }
// -- audio
if ( audio_out )
{