mirror of
https://github.com/mpv-player/mpv
synced 2025-03-02 20:28:02 +00:00
move fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1779 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a02f6a7b0e
commit
22d9006b01
@ -6,7 +6,8 @@ int mplSubMoved = 0;
|
||||
|
||||
void mplSubDraw( wsParamDisplay )
|
||||
{
|
||||
if ( !appMPlayer.subWindow.Visible || mplShMem->Playing ) return;
|
||||
if ( !appMPlayer.subWindow.Visible ) return;
|
||||
if ( mplShMem->Playing ) { vo_expose=1; return; }
|
||||
|
||||
if ( mplSubRender )
|
||||
{
|
||||
@ -44,7 +45,7 @@ void mplSubMouseHandle( int Button,int X,int Y,int RX,int RY )
|
||||
{
|
||||
case wsPLMouseButton:
|
||||
mplSubMoved=1;
|
||||
wsMoveWindow( &appMPlayer.subWindow,RX - sx,RY - sy );
|
||||
if ( !appMPlayer.subWindow.isFullScreen ) wsMoveWindow( &appMPlayer.subWindow,RX - sx,RY - sy );
|
||||
break;
|
||||
case wsPRMouseButton:
|
||||
mplMenuMouseHandle( X,Y,RX,RY );
|
||||
@ -53,7 +54,10 @@ void mplSubMouseHandle( int Button,int X,int Y,int RX,int RY )
|
||||
}
|
||||
break;
|
||||
case wsRLMouseButton:
|
||||
if ( !mplSubMoved ) wsMoveTopWindow( &appMPlayer.mainWindow );
|
||||
if ( !mplSubMoved )
|
||||
{
|
||||
wsMoveTopWindow( &appMPlayer.mainWindow );
|
||||
}
|
||||
msButton=0;
|
||||
mplSubMoved=0;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user