Mercurial > hg > xemacs-beta
diff src/toolbar-msw.c @ 294:4b85ae5eabfb r21-0b45
Import from CVS: tag r21-0b45
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:38:01 +0200 |
parents | e11d67e05968 |
children | 70ad99077275 |
line wrap: on
line diff
--- a/src/toolbar-msw.c Mon Aug 13 10:37:16 2007 +0200 +++ b/src/toolbar-msw.c Mon Aug 13 10:38:01 2007 +0200 @@ -300,16 +300,19 @@ /* need to build an image list for the bitmaps */ if (!ilist && !(ilist = ImageList_Create ( bmwidth, bmheight, - ILC_COLOR24, nbuttons, nbuttons * 2 ))) + ILC_MASK | ILC_COLOR24, + nbuttons, nbuttons * 2 ))) { xfree (button_tbl); signal_simple_error ("couldn't create image list", instance); } - + + /* make the mask actually do something */ + ImageList_SetBkColor (ilist, CLR_NONE); /* add a bitmap to the list */ if ((tbbutton->iBitmap = - ImageList_Add + ImageList_Add (ilist, bitmap ? bitmap : IMAGE_INSTANCE_MSWINDOWS_BITMAP (p),