comparison Gui/mplayer/play.c @ 2025:0653e90b3118

some bug fix, and sub window render speed up.. 10l kola ? :)
author pontscho
date Mon, 01 Oct 2001 09:30:46 +0000
parents 041483da104e
children 41ed89701ece
comparison
equal deleted inserted replaced
2024:8cb7643ef739 2025:0653e90b3118
51 mplShMem->Position=0; 51 mplShMem->Position=0;
52 mplShMem->AudioType=0; 52 mplShMem->AudioType=0;
53 // if ( !mplShMem->Playing ) return; 53 // if ( !mplShMem->Playing ) return;
54 if ( !appMPlayer.subWindow.isFullScreen ) 54 if ( !appMPlayer.subWindow.isFullScreen )
55 { 55 {
56 wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height );
56 wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y ); 57 wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y );
57 wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height );
58 } 58 }
59 mplSubRender=1; 59 mplSubRender=1;
60 wsClearWindow( appMPlayer.subWindow ); 60 wsClearWindow( appMPlayer.subWindow );
61 wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB ); 61 wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB );
62 wsPostRedisplay( &appMPlayer.subWindow ); 62 wsPostRedisplay( &appMPlayer.subWindow );
172 wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height ); 172 wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height );
173 wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y ); 173 wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y );
174 } 174 }
175 wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB ); 175 wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB );
176 wsClearWindow( appMPlayer.subWindow ); 176 wsClearWindow( appMPlayer.subWindow );
177 if ( appMPlayer.sub.Bitmap.Image ) wsConvert( &appMPlayer.subWindow,appMPlayer.sub.Bitmap.Image,appMPlayer.sub.Bitmap.ImageSize );
177 mplSubRender=1; wsPostRedisplay( &appMPlayer.subWindow ); 178 mplSubRender=1; wsPostRedisplay( &appMPlayer.subWindow );
178 } 179 }
179 180
180 if ( mplDrawBuffer ) free( mplDrawBuffer ); 181 if ( mplDrawBuffer ) free( mplDrawBuffer );
181 if ( ( mplDrawBuffer = (unsigned char *)calloc( 1,appMPlayer.main.Bitmap.ImageSize ) ) == NULL ) 182 if ( ( mplDrawBuffer = (unsigned char *)calloc( 1,appMPlayer.main.Bitmap.ImageSize ) ) == NULL )
201 } 202 }
202 203
203 void mplResizeToMovieSize( unsigned int width,unsigned int height ) 204 void mplResizeToMovieSize( unsigned int width,unsigned int height )
204 { 205 {
205 if ( !appMPlayer.subWindow.isFullScreen ) 206 if ( !appMPlayer.subWindow.isFullScreen )
207 {
206 wsResizeWindow( &appMPlayer.subWindow,width,height ); 208 wsResizeWindow( &appMPlayer.subWindow,width,height );
207 } 209 wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y );
210 }
211 }