Mercurial > mplayer.hg
comparison Gui/mplayer/sw.h @ 1778:6adf80f99796
move fix
author | pontscho |
---|---|
date | Thu, 30 Aug 2001 16:50:03 +0000 |
parents | d6c99f70449e |
children | d94471abe4ca |
comparison
equal
deleted
inserted
replaced
1777:fcba80a2e79f | 1778:6adf80f99796 |
---|---|
4 int mplSubRender = 1; | 4 int mplSubRender = 1; |
5 int mplSubMoved = 0; | 5 int mplSubMoved = 0; |
6 | 6 |
7 void mplSubDraw( wsParamDisplay ) | 7 void mplSubDraw( wsParamDisplay ) |
8 { | 8 { |
9 if ( !appMPlayer.subWindow.Visible || mplShMem->Playing ) return; | 9 if ( !appMPlayer.subWindow.Visible ) return; |
10 if ( mplShMem->Playing ) { vo_expose=1; return; } | |
10 | 11 |
11 if ( mplSubRender ) | 12 if ( mplSubRender ) |
12 { | 13 { |
13 wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB ); | 14 wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB ); |
14 wsClearWindow( appMPlayer.subWindow ); | 15 wsClearWindow( appMPlayer.subWindow ); |
42 case wsMoveMouse: | 43 case wsMoveMouse: |
43 switch ( msButton ) | 44 switch ( msButton ) |
44 { | 45 { |
45 case wsPLMouseButton: | 46 case wsPLMouseButton: |
46 mplSubMoved=1; | 47 mplSubMoved=1; |
47 wsMoveWindow( &appMPlayer.subWindow,RX - sx,RY - sy ); | 48 if ( !appMPlayer.subWindow.isFullScreen ) wsMoveWindow( &appMPlayer.subWindow,RX - sx,RY - sy ); |
48 break; | 49 break; |
49 case wsPRMouseButton: | 50 case wsPRMouseButton: |
50 mplMenuMouseHandle( X,Y,RX,RY ); | 51 mplMenuMouseHandle( X,Y,RX,RY ); |
51 mplMouseTimer=mplMouseTimerConst; | 52 mplMouseTimer=mplMouseTimerConst; |
52 break; | 53 break; |
53 } | 54 } |
54 break; | 55 break; |
55 case wsRLMouseButton: | 56 case wsRLMouseButton: |
56 if ( !mplSubMoved ) wsMoveTopWindow( &appMPlayer.mainWindow ); | 57 if ( !mplSubMoved ) |
58 { | |
59 wsMoveTopWindow( &appMPlayer.mainWindow ); | |
60 } | |
57 msButton=0; | 61 msButton=0; |
58 mplSubMoved=0; | 62 mplSubMoved=0; |
59 break; | 63 break; |
60 } | 64 } |
61 } | 65 } |