mirror of
https://github.com/mpv-player/mpv
synced 2025-01-18 21:31:13 +00:00
eh. double screen size fix.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1770 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
40fbdf6502
commit
55b24118f2
@ -329,23 +329,25 @@ NoPause:
|
||||
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.OldX=( wsMaxX - moviewidth ) / 2;
|
||||
appMPlayer.subWindow.OldY=( wsMaxY - movieheight ) / 2;
|
||||
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;
|
||||
case evDoubleSize:
|
||||
if ( mplShMem->Playing )
|
||||
{
|
||||
appMPlayer.subWindow.isFullScreen=True;
|
||||
appMPlayer.subWindow.OldX=( wsMaxX - moviewidth * 2 ) / 2;
|
||||
appMPlayer.subWindow.OldY=( wsMaxY - movieheight * 2 ) / 2;
|
||||
appMPlayer.subWindow.OldWidth=moviewidth * 2; appMPlayer.subWindow.OldHeight=movieheight * 2;
|
||||
wsFullScreen( &appMPlayer.subWindow );
|
||||
mplResize( appMPlayer.subWindow.X,appMPlayer.subWindow.Y,moviewidth,movieheight );
|
||||
}
|
||||
break;
|
||||
|
||||
// --- timer events
|
||||
case evHideMouseCursor:
|
||||
|
Loading…
Reference in New Issue
Block a user