changeset 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 e3425875a03a
files win/dw.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/win/dw.c	Mon May 02 14:18:47 2011 +0000
+++ b/win/dw.c	Mon May 02 14:26:17 2011 +0000
@@ -8965,7 +8965,7 @@
  */
 void API dw_pixmap_set_transparent_color( HPIXMAP pixmap, ULONG color )
 {
-   if ( pixmap )
+   if ( pixmap && pixmap->depth == 8)
    {
       pixmap->transcolor = _internal_color(color);
    }