Mercurial > mplayer.hg
comparison Gui/mplayer/play.c @ 1765:29913c011d50
normal size
author | pontscho |
---|---|
date | Thu, 30 Aug 2001 10:55:17 +0000 |
parents | 6f35d37af91c |
children | 7e3136adcfb1 |
comparison
equal
deleted
inserted
replaced
1764:a9e51734ea00 | 1765:29913c011d50 |
---|---|
5 #include <unistd.h> | 5 #include <unistd.h> |
6 #include <signal.h> | 6 #include <signal.h> |
7 | 7 |
8 int mplParent = 1; | 8 int mplParent = 1; |
9 | 9 |
10 int mplx,mply,mplwidth,mplheight; | 10 int moviex,moviey,moviewidth,movieheight; |
11 | 11 |
12 #include "../app.h" | 12 #include "../app.h" |
13 | 13 |
14 #include "../wm/ws.h" | 14 #include "../wm/ws.h" |
15 #include "../wm/wskeys.h" | 15 #include "../wm/wskeys.h" |
35 // mplayer( 0,NULL,NULL ); | 35 // mplayer( 0,NULL,NULL ); |
36 } | 36 } |
37 | 37 |
38 void mplFullScreen( void ) | 38 void mplFullScreen( void ) |
39 { | 39 { |
40 if ( appMPlayer.subWindow.isFullScreen ) | 40 // if ( appMPlayer.subWindow.isFullScreen ) |
41 { | 41 // { |
42 if ( mplShMem->Playing ) | 42 // } |
43 { | 43 wsFullScreen( &appMPlayer.subWindow ); |
44 appMPlayer.subWindow.OldX=mplx; | |
45 appMPlayer.subWindow.OldY=mply; | |
46 appMPlayer.subWindow.OldWidth=mplwidth; | |
47 appMPlayer.subWindow.OldHeight=mplheight; | |
48 } | |
49 else | |
50 { | |
51 appMPlayer.subWindow.OldWidth=appMPlayer.sub.width; | |
52 appMPlayer.subWindow.OldHeight=appMPlayer.sub.height; | |
53 appMPlayer.subWindow.OldX=( wsMaxX - appMPlayer.sub.width ) / 2; | |
54 appMPlayer.subWindow.OldY=( wsMaxY - appMPlayer.sub.height ) / 2; | |
55 } | |
56 } | |
57 else | |
58 { | |
59 mplx=appMPlayer.subWindow.X; | |
60 mply=appMPlayer.subWindow.Y; | |
61 mplwidth=appMPlayer.subWindow.Width; | |
62 mplheight=appMPlayer.subWindow.Height; | |
63 } | |
64 wsFullScreen( &appMPlayer.subWindow ); | |
65 // wsMoveTopWindow( &appMPlayer.subWindow ); | |
66 mplResize( 0,0,appMPlayer.subWindow.Width,appMPlayer.subWindow.Height ); | 44 mplResize( 0,0,appMPlayer.subWindow.Width,appMPlayer.subWindow.Height ); |
67 } | 45 } |
68 | 46 |
69 extern int mplSubRender; | 47 extern int mplSubRender; |
70 | 48 |