… | |
… | |
434 | Display *dpy = s->display->dpy; |
434 | Display *dpy = s->display->dpy; |
435 | Picture src = XRenderCreatePicture (dpy, pm, format, 0, 0); |
435 | Picture src = XRenderCreatePicture (dpy, pm, format, 0, 0); |
436 | Picture dst = XRenderCreatePicture (dpy, img->pm, new_format, 0, 0); |
436 | Picture dst = XRenderCreatePicture (dpy, img->pm, new_format, 0, 0); |
437 | int op = PictOpSrc; |
437 | int op = PictOpSrc; |
438 | |
438 | |
439 | printf ("fa %x,%x fb %x,%x\n", format->direct.alpha, format->direct.alphaMask, new_format->direct.alpha, new_format->direct.alphaMask);//D |
|
|
440 | |
|
|
441 | if (format->direct.alpha && !new_format->direct.alpha) |
439 | if (format->direct.alphaMask && !new_format->direct.alphaMask) |
442 | { |
440 | { |
443 | // does it have to be that complicated |
441 | // does it have to be that complicated |
444 | rgba c; |
442 | rgba c; |
445 | bg.get (c); |
443 | bg.get (c); |
446 | |
444 | |