diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-20 12:42:16 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-20 12:42:16 +0000 |
commit | 90b278bfaa7dcc0fa26d81cc033fc4cc1c3801a4 (patch) | |
tree | a6e2dd81d6efb35c87d3c4246be345434dffcd26 /Gui/interface.c | |
parent | b45f146c371817e0056af61a8dadbcfb54399271 (diff) | |
download | mpv-90b278bfaa7dcc0fa26d81cc033fc4cc1c3801a4.tar.bz2 mpv-90b278bfaa7dcc0fa26d81cc033fc4cc1c3801a4.tar.xz |
many 10l for me ...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9626 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/interface.c')
-rw-r--r-- | Gui/interface.c | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/Gui/interface.c b/Gui/interface.c index 9a77c601e1..d8abd113c0 100644 --- a/Gui/interface.c +++ b/Gui/interface.c @@ -204,14 +204,21 @@ void guiInit( void ) exit( 0 ); } + if ( gui_save_pos ) + { + appMPlayer.main.x = gui_main_pos_x; + appMPlayer.main.y = gui_main_pos_y; + appMPlayer.sub.x = gui_sub_pos_x; + appMPlayer.sub.y = gui_sub_pos_y; + } + if (WinID>0) - { + { appMPlayer.subWindow.Parent=WinID; appMPlayer.sub.x=0; appMPlayer.sub.y=0; - } - if (guiWinID>=0) - appMPlayer.mainWindow.Parent=guiWinID; + } + if (guiWinID>=0) appMPlayer.mainWindow.Parent=guiWinID; wsCreateWindow( &appMPlayer.subWindow, appMPlayer.sub.x,appMPlayer.sub.y,appMPlayer.sub.width,appMPlayer.sub.height, @@ -331,6 +338,13 @@ void guiDone( void ) { mplMainRender=0; mp_msg( MSGT_GPLAYER,MSGL_V,"[gui] done.\n" ); + + if ( gui_save_pos ) + { + 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; + } + cfg_write(); wsXDone(); } |