diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-09 12:58:43 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-09 12:58:43 +0000 |
commit | 35644f7ca2515e8227178f913b0934b8a178aa0a (patch) | |
tree | d60150cfbec21b1cc8d04019ffa84192a9e08125 /Gui/skin | |
parent | cc17c4d72ed122a35798a374c0911deaca372e64 (diff) |
uuupsz ... 1l cola ;)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2782 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/skin')
-rw-r--r-- | Gui/skin/skin.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/Gui/skin/skin.c b/Gui/skin/skin.c index 21666db7b6..6b66506a79 100644 --- a/Gui/skin/skin.c +++ b/Gui/skin/skin.c @@ -132,27 +132,8 @@ 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; - defList->main.Mask.ImageSize=defList->main.Mask.Width * defList->main.Mask.Height / 8; - defList->main.Mask.Image=(char *)calloc( 1,defList->main.Mask.ImageSize ); - if ( defList->main.Mask.Image == NULL ) message( True,MSGTR_NEMFMM ); - { - int i,b,c=0; unsigned long * buf = NULL; unsigned char tmp = 0; int nothaveshape = 1; - buf=(unsigned long *)defList->main.Bitmap.Image; - for ( b=0,i=0;i < defList->main.Mask.Width * defList->main.Mask.Height;i++ ) - { - if ( buf[i] != 0x00ff00ff ) tmp=( tmp >> 1 )|128; - else { tmp=tmp >> 1; buf[i]=nothaveshape=0; } - 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; } - } -*/ Convert32to1( &defList->main.Bitmap,&defList->main.Mask,0x00ff00ff ); +#if 0 { if ( defList->main.Mask.Image != NULL ) { @@ -161,6 +142,7 @@ int __base( char * in ) tgaWriteTexture( "debug.tga",&d ); } } +#endif #ifdef DEBUG dbprintf( 3,"[skin] mask: %dx%d\n",defList->main.Mask.Width,defList->main.Mask.Height ); #endif |