diff options
author | 2006-10-25 00:05:14 +0000 | |
---|---|---|
committer | 2006-10-25 00:05:14 +0000 | |
commit | 18beb11c3de796d9767406125ce1d62d918a071e (patch) | |
tree | 7ed51239290ac40dd11c6557626c4a39ad425983 /Gui/interface.c | |
parent | b7f39d6b1600038aebcb3e8443fdbd4eef1072b0 (diff) |
Add ASS subtitle rendering options to gui.
Patch by Piotr Kaczuba <pepe at attika dot ath dot cx>.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20440 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/interface.c')
-rw-r--r-- | Gui/interface.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Gui/interface.c b/Gui/interface.c index b2ef7247e0..00b12837a5 100644 --- a/Gui/interface.c +++ b/Gui/interface.c @@ -216,6 +216,13 @@ void guiInit( void ) else if ( stream_cache_size == 0 ) gtkCacheOn = 0; if ( autosync && autosync != gtkAutoSync ) { gtkAutoSyncOn=1; gtkAutoSync=autosync; } +#ifdef USE_ASS + gtkASS.enabled = ass_enabled; + gtkASS.use_margins = ass_use_margins; + gtkASS.top_margin = ass_top_margin; + gtkASS.bottom_margin = ass_bottom_margin; +#endif + gtkInit(); // --- initialize X wsXInit( (void *)mDisplay ); @@ -388,6 +395,13 @@ void guiDone( void ) gui_main_pos_x=appMPlayer.mainWindow.X; gui_main_pos_y=appMPlayer.mainWindow.Y; gui_sub_pos_x=appMPlayer.subWindow.X; gui_sub_pos_y=appMPlayer.subWindow.Y; } + +#ifdef USE_ASS + ass_enabled = gtkASS.enabled; + ass_use_margins = gtkASS.use_margins; + ass_top_margin = gtkASS.top_margin; + ass_bottom_margin = gtkASS.bottom_margin; +#endif cfg_write(); wsXDone(); @@ -923,6 +937,13 @@ int guiGetEvent( int type,char * arg ) guiIntfStruct.FilenameChanged=0; guiIntfStruct.NewPlay=0; +#ifdef USE_ASS + ass_enabled = gtkASS.enabled; + ass_use_margins = gtkASS.use_margins; + ass_top_margin = gtkASS.top_margin; + ass_bottom_margin = gtkASS.bottom_margin; +#endif + break; } return False; |