1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-03 14:55:46 +01:00

- fixed a bug in the icon chooser dialog that made the selected icon look

wrong if it had alpha blending.
- fixed a bug in WMReparentWidget()
- added WMReparentWidget() to WINGs.h
This commit is contained in:
dan
2001-04-26 02:45:28 +00:00
parent 86154ba01d
commit 649a7ac82c
5 changed files with 17 additions and 6 deletions

View File

@@ -370,7 +370,7 @@ drawIconProc(WMList *lPtr, int index, Drawable d, char *text,
WMColor *whitecolor;
WMSize size;
WMScreen *wmscr = WMWidgetScreen(panel->win);
RColor gray;
RColor color;
int width;
if(!panel->preview) return;
@@ -385,9 +385,14 @@ drawIconProc(WMList *lPtr, int index, Drawable d, char *text,
sprintf(file, "%s/%s", dirfile, text);
wfree(dirfile);
gray.red = 0xae; gray.green = 0xaa;
gray.blue = 0xae; gray.alpha = 0;
pixmap = WMCreateBlendedPixmapFromFile(wmscr, file, &gray);
if ((state & WLDSSelected) != 0) {
color.red = color.green = color.blue = 0xff;
color.alpha = 0;
} else {
color.red = color.blue = 0xae;
color.green = 0xaa; color.alpha = 0;
}
pixmap = WMCreateBlendedPixmapFromFile(wmscr, file, &color);
wfree(file);
if (!pixmap) {