Mercurial > mplayer.hg
changeset 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 | 8cb7643ef739 |
children | a913fd8a62da |
files | Gui/Makefile Gui/mplayer/Makefile Gui/mplayer/mplayer.c Gui/mplayer/play.c Gui/mplayer/sw.h Gui/skin/skin.c |
diffstat | 6 files changed, 19 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/Gui/Makefile Sun Sep 30 21:59:52 2001 +0000 +++ b/Gui/Makefile Mon Oct 01 09:30:46 2001 +0000 @@ -12,6 +12,9 @@ OPTIMIZE = $(OPTFLAGS) -fomit-frame-pointer \ -fexpensive-optimizations -fschedule-insns2 -Wall +ifeq ($(TARGET_ARCH_X86),yes) +OPTIMIZE += -malign-double +endif CFLAGS = $(OPTIMIZE) $(INCDIR) $(DEBUG)
--- a/Gui/mplayer/Makefile Sun Sep 30 21:59:52 2001 +0000 +++ b/Gui/mplayer/Makefile Mon Oct 01 09:30:46 2001 +0000 @@ -11,6 +11,9 @@ OPTIMIZE = $(OPTFLAGS) -fomit-frame-pointer \ -fexpensive-optimizations -fschedule-insns2 -Wall +ifeq ($(TARGET_ARCH_X86),yes) +OPTIMIZE += -malign-double +endif CFLAGS = $(OPTIMIZE) $(INCDIR) $(DEBUG)
--- a/Gui/mplayer/mplayer.c Sun Sep 30 21:59:52 2001 +0000 +++ b/Gui/mplayer/mplayer.c Mon Oct 01 09:30:46 2001 +0000 @@ -104,6 +104,8 @@ appMPlayer.subWindow.KeyHandler=mplMainKeyHandle; appMPlayer.subWindow.ReSize=mplResize; + if ( appMPlayer.sub.Bitmap.Image ) wsConvert( &appMPlayer.subWindow,appMPlayer.sub.Bitmap.Image,appMPlayer.sub.Bitmap.ImageSize ); + wsPostRedisplay( &appMPlayer.mainWindow ); wsPostRedisplay( &appMPlayer.subWindow );
--- a/Gui/mplayer/play.c Sun Sep 30 21:59:52 2001 +0000 +++ b/Gui/mplayer/play.c Mon Oct 01 09:30:46 2001 +0000 @@ -53,8 +53,8 @@ // if ( !mplShMem->Playing ) return; if ( !appMPlayer.subWindow.isFullScreen ) { + wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height ); wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y ); - wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height ); } mplSubRender=1; wsClearWindow( appMPlayer.subWindow ); @@ -174,6 +174,7 @@ } wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB ); wsClearWindow( appMPlayer.subWindow ); + if ( appMPlayer.sub.Bitmap.Image ) wsConvert( &appMPlayer.subWindow,appMPlayer.sub.Bitmap.Image,appMPlayer.sub.Bitmap.ImageSize ); mplSubRender=1; wsPostRedisplay( &appMPlayer.subWindow ); } @@ -203,5 +204,8 @@ void mplResizeToMovieSize( unsigned int width,unsigned int height ) { if ( !appMPlayer.subWindow.isFullScreen ) + { wsResizeWindow( &appMPlayer.subWindow,width,height ); + wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y ); + } }
--- a/Gui/mplayer/sw.h Sun Sep 30 21:59:52 2001 +0000 +++ b/Gui/mplayer/sw.h Mon Oct 01 09:30:46 2001 +0000 @@ -21,13 +21,13 @@ if ( mplSubRender ) { - wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB ); +// wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB ); if ( appMPlayer.sub.Bitmap.Image ) { - wsConvert( &appMPlayer.subWindow,appMPlayer.sub.Bitmap.Image,appMPlayer.sub.Bitmap.ImageSize ); +// wsConvert( &appMPlayer.subWindow,appMPlayer.sub.Bitmap.Image,appMPlayer.sub.Bitmap.ImageSize ); wsPutImage( &appMPlayer.subWindow ); } - XFlush( wsDisplay ); +// XFlush( wsDisplay ); } appMPlayer.subWindow.State=0; }
--- a/Gui/skin/skin.c Sun Sep 30 21:59:52 2001 +0000 +++ b/Gui/skin/skin.c Mon Oct 01 09:30:46 2001 +0000 @@ -162,15 +162,15 @@ } if ( !strcmp( winList,"sub" ) ) { - defList->sub.x=x; - defList->sub.y=y; defList->sub.type=itBase; strcpy( tmp,path ); strcat( tmp,fname ); if ( skinBPRead( tmp,&defList->sub.Bitmap ) ) return 1; + defList->sub.x=x; + defList->sub.y=y; defList->sub.width=defList->sub.Bitmap.Width; defList->sub.height=defList->sub.Bitmap.Height; #ifdef DEBUG - dbprintf( 3,"[skin] width: %d height: %d\n",defList->sub.width,defList->sub.height ); + dbprintf( 3,"[skin] %d,%d %dx%d\n",defList->sub.x,defList->sub.y,defList->sub.width,defList->sub.height ); #endif } /*