Mercurial > mplayer.hg
comparison Gui/interface.c @ 9625:bc24dd70c6e2
many 10l for me ...
author | pontscho |
---|---|
date | Thu, 20 Mar 2003 12:42:16 +0000 |
parents | 20f0a254142d |
children | 22092ed814ad |
comparison
equal
deleted
inserted
replaced
9624:c840ad2ea2de | 9625:bc24dd70c6e2 |
---|---|
202 { | 202 { |
203 fprintf( stderr,MSGTR_NEMDB ); | 203 fprintf( stderr,MSGTR_NEMDB ); |
204 exit( 0 ); | 204 exit( 0 ); |
205 } | 205 } |
206 | 206 |
207 if ( gui_save_pos ) | |
208 { | |
209 appMPlayer.main.x = gui_main_pos_x; | |
210 appMPlayer.main.y = gui_main_pos_y; | |
211 appMPlayer.sub.x = gui_sub_pos_x; | |
212 appMPlayer.sub.y = gui_sub_pos_y; | |
213 } | |
214 | |
207 if (WinID>0) | 215 if (WinID>0) |
208 { | 216 { |
209 appMPlayer.subWindow.Parent=WinID; | 217 appMPlayer.subWindow.Parent=WinID; |
210 appMPlayer.sub.x=0; | 218 appMPlayer.sub.x=0; |
211 appMPlayer.sub.y=0; | 219 appMPlayer.sub.y=0; |
212 } | 220 } |
213 if (guiWinID>=0) | 221 if (guiWinID>=0) appMPlayer.mainWindow.Parent=guiWinID; |
214 appMPlayer.mainWindow.Parent=guiWinID; | |
215 | 222 |
216 wsCreateWindow( &appMPlayer.subWindow, | 223 wsCreateWindow( &appMPlayer.subWindow, |
217 appMPlayer.sub.x,appMPlayer.sub.y,appMPlayer.sub.width,appMPlayer.sub.height, | 224 appMPlayer.sub.x,appMPlayer.sub.y,appMPlayer.sub.width,appMPlayer.sub.height, |
218 wsNoBorder,wsShowMouseCursor|wsHandleMouseButton|wsHandleMouseMove,wsShowFrame|wsHideWindow,"MPlayer - Video" ); | 225 wsNoBorder,wsShowMouseCursor|wsHandleMouseButton|wsHandleMouseMove,wsShowFrame|wsHideWindow,"MPlayer - Video" ); |
219 | 226 |
329 | 336 |
330 void guiDone( void ) | 337 void guiDone( void ) |
331 { | 338 { |
332 mplMainRender=0; | 339 mplMainRender=0; |
333 mp_msg( MSGT_GPLAYER,MSGL_V,"[gui] done.\n" ); | 340 mp_msg( MSGT_GPLAYER,MSGL_V,"[gui] done.\n" ); |
341 | |
342 if ( gui_save_pos ) | |
343 { | |
344 gui_main_pos_x=appMPlayer.mainWindow.X; gui_main_pos_y=appMPlayer.mainWindow.Y; | |
345 gui_sub_pos_x=appMPlayer.subWindow.X; gui_sub_pos_y=appMPlayer.subWindow.Y; | |
346 } | |
347 | |
334 cfg_write(); | 348 cfg_write(); |
335 wsXDone(); | 349 wsXDone(); |
336 } | 350 } |
337 | 351 |
338 int guiCMDArray[] = | 352 int guiCMDArray[] = |