Mercurial > mplayer.hg
comparison Gui/mplayer/sw.h @ 1729:d6c99f70449e
fix hprogressbar
author | pontscho |
---|---|
date | Tue, 28 Aug 2001 15:55:02 +0000 |
parents | 5e4214a7540e |
children | 6adf80f99796 |
comparison
equal
deleted
inserted
replaced
1728:014b29286ec4 | 1729:d6c99f70449e |
---|---|
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 ) | 9 if ( !appMPlayer.subWindow.Visible || mplShMem->Playing ) return; |
10 { | |
11 mplSendMessage( mplExposeEvent ); | |
12 return; | |
13 } | |
14 | 10 |
15 if ( mplSubRender ) | 11 if ( mplSubRender ) |
16 { | 12 { |
17 wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB ); | 13 wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB ); |
18 wsClearWindow( appMPlayer.subWindow ); | 14 wsClearWindow( appMPlayer.subWindow ); |
19 if ( appMPlayer.sub.Bitmap.Image ) wsConvert( &appMPlayer.subWindow,appMPlayer.sub.Bitmap.Image,appMPlayer.sub.Bitmap.ImageSize ); | 15 if ( appMPlayer.sub.Bitmap.Image ) wsConvert( &appMPlayer.subWindow,appMPlayer.sub.Bitmap.Image,appMPlayer.sub.Bitmap.ImageSize ); |
20 mplSubRender=0; | 16 mplSubRender=0; |
21 if ( appMPlayer.sub.Bitmap.Image ) wsPutImage( &appMPlayer.subWindow ); | 17 if ( appMPlayer.sub.Bitmap.Image ) wsPutImage( &appMPlayer.subWindow ); |
18 XFlush( wsDisplay ); | |
22 } | 19 } |
23 XFlush( wsDisplay ); | |
24 XSync( wsDisplay,False ); | |
25 } | 20 } |
26 | 21 |
27 void mplSubMouseHandle( int Button,int X,int Y,int RX,int RY ) | 22 void mplSubMouseHandle( int Button,int X,int Y,int RX,int RY ) |
28 { | 23 { |
29 mplMouseTimer=mplMouseTimerConst; | 24 mplMouseTimer=mplMouseTimerConst; |