Mercurial > mplayer.hg
diff Gui/skin/skin.c @ 2717:5fa8c079ee3c
fix small xshape bug
author | pontscho |
---|---|
date | Mon, 05 Nov 2001 17:00:42 +0000 |
parents | 0653e90b3118 |
children | bd851a5afcb3 |
line wrap: on
line diff
--- a/Gui/skin/skin.c Mon Nov 05 15:47:21 2001 +0000 +++ b/Gui/skin/skin.c Mon Nov 05 17:00:42 2001 +0000 @@ -132,6 +132,7 @@ defList->main.width=defList->main.Bitmap.Width; defList->main.height=defList->main.Bitmap.Height; #ifdef HAVE_XSHAPE +/* defList->main.Mask.Width=defList->main.Bitmap.Width; defList->main.Mask.Height=defList->main.Bitmap.Height; defList->main.Mask.BPP=1; @@ -148,7 +149,17 @@ if ( b++ == 7 ) { defList->main.Mask.Image[c++]=tmp; tmp=b=0; } } if ( b ) defList->main.Mask.Image[c]=tmp; - if ( nothaveshape ) { free( defList->main.Mask.Image ); defList->main.Mask.Image=NULL; } +// if ( nothaveshape ) { free( defList->main.Mask.Image ); defList->main.Mask.Image=NULL; } + } +*/ + Convert32to1( &defList->main.Bitmap,&defList->main.Mask,0x00ff00ff ); + { + if ( defList->main.Mask.Image != NULL ) + { + txSample d; + Convert1to32( &defList->main.Mask,&d ); + tgaWriteTexture( "debug.tga",&d ); + } } #ifdef DEBUG dbprintf( 3,"[skin] mask: %dx%d\n",defList->main.Mask.Width,defList->main.Mask.Height );