summaryrefslogtreecommitdiffstats
path: root/Gui/skin
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-05 17:00:42 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-05 17:00:42 +0000
commitf691833dd39284ef97d97ae7e8c52f82558804aa (patch)
tree4c1b7bd8a00a077ec4b99bd834c69cf5968003ea /Gui/skin
parenta5c80b82c50a914cdfefbfa3bbc1cd073aefc1ae (diff)
downloadmpv-f691833dd39284ef97d97ae7e8c52f82558804aa.tar.bz2
mpv-f691833dd39284ef97d97ae7e8c52f82558804aa.tar.xz
fix small xshape bug
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2718 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/skin')
-rw-r--r--Gui/skin/skin.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/Gui/skin/skin.c b/Gui/skin/skin.c
index e5ba002699..21666db7b6 100644
--- a/Gui/skin/skin.c
+++ b/Gui/skin/skin.c
@@ -132,6 +132,7 @@ int __base( char * in )
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 @@ int __base( char * in )
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 );