changeset 6797:06d29dbdf20d

upsz, sorry, i forgott this :) (skin name saving:)
author pontscho
date Thu, 25 Jul 2002 21:31:36 +0000
parents 9c828335b2d0
children 7935d85facff
files Gui/cfg.c Gui/interface.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/cfg.c	Thu Jul 25 20:34:33 2002 +0000
+++ b/Gui/cfg.c	Thu Jul 25 21:31:36 2002 +0000
@@ -11,6 +11,7 @@
 #include "../../libvo/video_out.h"
 
 #include "cfg.h"
+#include "app.h"
 #include "interface.h"
 #include "mplayer/play.h"
 
@@ -92,6 +93,8 @@
  { "sub_pos",&gtkSubPos,CONF_TYPE_INT,CONF_RANGE,0,200,NULL },
  { "font_factor",&gtkSubFFactor,CONF_TYPE_FLOAT,CONF_RANGE,0.0,10.0,NULL },
  { "font_name",&guiIntfStruct.Fontname,CONF_TYPE_STRING,0,0,0,NULL },
+ 
+ { "gui_skin",&skinName,CONF_TYPE_STRING,0,0,0,NULL },
 
  { "equ_channel_1",&gtkEquChannel1,CONF_TYPE_STRING,0,0,0,NULL },
  { "equ_channel_2",&gtkEquChannel2,CONF_TYPE_STRING,0,0,0,NULL },
--- a/Gui/interface.c	Thu Jul 25 20:34:33 2002 +0000
+++ b/Gui/interface.c	Thu Jul 25 21:31:36 2002 +0000
@@ -85,6 +85,9 @@
  cfg_read();
  appInit( (void*)mDisplay );
  if ( plCurrent ) mplSetFileName( plCurrent->path,plCurrent->name );
+#if defined( USE_OSD ) || defined( USE_SUB )
+ guiLoadFont();
+#endif
 }
 
 void guiDone( void )
@@ -324,7 +327,7 @@
 // --- video opts	 
        if ( !gtkVODriver )
 	{
-         int i = 0, c = 0;
+         int i = 0;
          while ( video_out_drivers[i++] )
 	  if ( video_out_drivers[i - 1]->control( VOCTRL_GUISUPPORT,NULL ) == VO_TRUE ) 
 	   {