diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-30 10:55:17 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-30 10:55:17 +0000 |
commit | b194ee83af094a2ad6d3d049f8cc97715555f5df (patch) | |
tree | a78b3616c8e31c49e715a2d465c564448899f440 /Gui/mplayer/mw.h | |
parent | 6fc0377d0d0ae36bc84af932e478ca66778039ab (diff) | |
download | mpv-b194ee83af094a2ad6d3d049f8cc97715555f5df.tar.bz2 mpv-b194ee83af094a2ad6d3d049f8cc97715555f5df.tar.xz |
normal size
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1766 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer/mw.h')
-rw-r--r-- | Gui/mplayer/mw.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/Gui/mplayer/mw.h b/Gui/mplayer/mw.h index 90721a1ac8..3859f871de 100644 --- a/Gui/mplayer/mw.h +++ b/Gui/mplayer/mw.h @@ -125,8 +125,6 @@ void PutImage( txSample * bf,int x,int y,int max,int ofs ) } } -extern float gui_position; - void mplMainDraw( wsParamDisplay ) { wItem * item; @@ -328,8 +326,26 @@ NoPause: case evIncAudioBufDelay: mplIncAudioBufDelay(); break; case evDecAudioBufDelay: mplDecAudioBufDelay(); break; - case evNormalSize: if ( mplShMem->Playing ) wsResizeWindow( &appMPlayer.subWindow,mplwidth,mplheight ); break; - case evDoubleSize: if ( mplShMem->Playing ) wsResizeWindow( &appMPlayer.subWindow,mplwidth * 2,mplheight * 2 ); break; + case evNormalSize: + if ( mplShMem->Playing ) + { +// wsWindowDecoration( &appMPlayer.subWindow,appMPlayer.subWindow.Decorations ); +// wsWindowDecoration( &appMPlayer.subWindow,0 ); +// appMPlayer.subWindow.isFullScreen=0; +// wsMoveWindow( &appMPlayer.subWindow,appMPlayer.subWindow.OldX,appMPlayer.subWindow.OldY ); +// wsResizeWindow( &appMPlayer.subWindow,moviewidth,movieheight ); + appMPlayer.subWindow.isFullScreen=True; + appMPlayer.subWindow.OldWidth=moviewidth; appMPlayer.subWindow.OldHeight=movieheight; + wsFullScreen( &appMPlayer.subWindow ); + mplResize( appMPlayer.subWindow.X,appMPlayer.subWindow.Y,moviewidth,movieheight ); + } +// else +// { +// wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height ); +// wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y ); +// } + break; +// case evDoubleSize: if ( mplShMem->Playing ) wsResizeWindow( &appMPlayer.subWindow,mplwidth * 2,mplheight * 2 ); break; // --- timer events case evHideMouseCursor: |