comparison win/dw.c @ 961:25b24bb098fd

Only set the transparent color on bitmaps with 8 bits per pixel.. otherwise you get a black square.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 02 May 2011 14:26:17 +0000
parents 841b66d2d1b9
children d90222530bb9
comparison
equal deleted inserted replaced
960:841b66d2d1b9 961:25b24bb098fd
8963 /* 8963 /*
8964 * Creates a bitmap mask for rendering bitmaps with transparent backgrounds 8964 * Creates a bitmap mask for rendering bitmaps with transparent backgrounds
8965 */ 8965 */
8966 void API dw_pixmap_set_transparent_color( HPIXMAP pixmap, ULONG color ) 8966 void API dw_pixmap_set_transparent_color( HPIXMAP pixmap, ULONG color )
8967 { 8967 {
8968 if ( pixmap ) 8968 if ( pixmap && pixmap->depth == 8)
8969 { 8969 {
8970 pixmap->transcolor = _internal_color(color); 8970 pixmap->transcolor = _internal_color(color);
8971 } 8971 }
8972 } 8972 }
8973 8973