… | |
… | |
1447 | if (render_image (background_flags)) |
1447 | if (render_image (background_flags)) |
1448 | flags = flags & ~isInvalid; |
1448 | flags = flags & ~isInvalid; |
1449 | } |
1449 | } |
1450 | # endif |
1450 | # endif |
1451 | |
1451 | |
|
|
1452 | # if defined(ENABLE_TRANSPARENCY) && !defined(HAVE_AFTERIMAGE) && !XRENDER |
1452 | XImage *result = NULL; |
1453 | XImage *result = NULL; |
1453 | |
1454 | |
1454 | if (background_flags && (flags & isInvalid)) |
1455 | if (background_flags && (flags & isInvalid)) |
1455 | { |
1456 | { |
1456 | result = XGetImage (target->dpy, pixmap, 0, 0, pmap_width, pmap_height, AllPlanes, ZPixmap); |
1457 | result = XGetImage (target->dpy, pixmap, 0, 0, pmap_width, pmap_height, AllPlanes, ZPixmap); |
1457 | } |
1458 | } |
1458 | |
1459 | |
1459 | if (result) |
1460 | if (result) |
1460 | { |
1461 | { |
1461 | # if !defined(HAVE_AFTERIMAGE) && !XRENDER |
|
|
1462 | /* our own client-side tinting */ |
1462 | /* our own client-side tinting */ |
1463 | if (!(background_flags & transpPmapTinted) && (flags & tintNeeded)) |
1463 | if (!(background_flags & transpPmapTinted) && (flags & tintNeeded)) |
1464 | { |
1464 | { |
1465 | rgba c (rgba::MAX_CC,rgba::MAX_CC,rgba::MAX_CC); |
1465 | rgba c (rgba::MAX_CC,rgba::MAX_CC,rgba::MAX_CC); |
1466 | if (flags & tintSet) |
1466 | if (flags & tintSet) |
1467 | tint.get (c); |
1467 | tint.get (c); |
1468 | ShadeXImage (DefaultVisual (target->dpy, target->display->screen), result, shade, c.r, c.g, c.b); |
1468 | ShadeXImage (DefaultVisual (target->dpy, target->display->screen), result, shade, c.r, c.g, c.b); |
1469 | } |
1469 | } |
1470 | # endif |
|
|
1471 | |
1470 | |
1472 | GC gc = XCreateGC (target->dpy, target->vt, 0UL, NULL); |
1471 | GC gc = XCreateGC (target->dpy, target->vt, 0UL, NULL); |
1473 | |
1472 | |
1474 | if (gc) |
1473 | if (gc) |
1475 | { |
1474 | { |
… | |
… | |
1479 | flags = flags & ~isInvalid; |
1478 | flags = flags & ~isInvalid; |
1480 | } |
1479 | } |
1481 | |
1480 | |
1482 | XDestroyImage (result); |
1481 | XDestroyImage (result); |
1483 | } |
1482 | } |
|
|
1483 | # endif |
1484 | |
1484 | |
1485 | if (flags & isInvalid) |
1485 | if (flags & isInvalid) |
1486 | { |
1486 | { |
1487 | if (pixmap != None) |
1487 | if (pixmap != None) |
1488 | { |
1488 | { |