summaryrefslogtreecommitdiffstats
path: root/Gui
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-25 21:31:36 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-25 21:31:36 +0000
commitd462fc4317bb04776ea62d29f9020c58260caaaa (patch)
treec67fb502bdb5a625e86af7a4a7c91abff2f27ded /Gui
parent27717ca5103366effd3afb0a6d75a2ea59945f2e (diff)
downloadmpv-d462fc4317bb04776ea62d29f9020c58260caaaa.tar.bz2
mpv-d462fc4317bb04776ea62d29f9020c58260caaaa.tar.xz
upsz, sorry, i forgott this :) (skin name saving:)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6798 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui')
-rw-r--r--Gui/cfg.c3
-rw-r--r--Gui/interface.c5
2 files changed, 7 insertions, 1 deletions
diff --git a/Gui/cfg.c b/Gui/cfg.c
index f59cefb969..bd5b0e598c 100644
--- a/Gui/cfg.c
+++ b/Gui/cfg.c
@@ -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 @@ static config_t gui_opts[] =
{ "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 },
diff --git a/Gui/interface.c b/Gui/interface.c
index 96dc7f121f..20e62c5b84 100644
--- a/Gui/interface.c
+++ b/Gui/interface.c
@@ -85,6 +85,9 @@ void guiInit( void )
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 @@ void guiGetEvent( int type,char * arg )
// --- 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 )
{