… | |
… | |
1413 | |
1413 | |
1414 | root_pixmap = new_root_pixmap; |
1414 | root_pixmap = new_root_pixmap; |
1415 | } |
1415 | } |
1416 | # endif /* ENABLE_TRANSPARENCY */ |
1416 | # endif /* ENABLE_TRANSPARENCY */ |
1417 | |
1417 | |
1418 | # ifndef HAVE_AFTERIMAGE |
1418 | #if defined(ENABLE_TRANSPARENCY) && !defined(HAVE_AFTERIMAGE) |
1419 | static void ShadeXImage(Visual *visual, XImage *srcImage, int shade, int rm, int gm, int bm); |
1419 | static void ShadeXImage(Visual *visual, XImage *srcImage, int shade, int rm, int gm, int bm); |
1420 | # endif |
1420 | # endif |
1421 | |
1421 | |
1422 | bool |
1422 | bool |
1423 | bgPixmap_t::render () |
1423 | bgPixmap_t::render () |
… | |
… | |
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 | # if defined(ENABLE_TRANSPARENCY) && !defined(HAVE_AFTERIMAGE) |
1453 | XImage *result = NULL; |
1453 | XImage *result = NULL; |
1454 | |
1454 | |
1455 | if (background_flags && (flags & isInvalid)) |
1455 | if (background_flags && (flags & isInvalid)) |
1456 | { |
1456 | { |
1457 | 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); |
… | |
… | |
1574 | flags |= hasChanged; |
1574 | flags |= hasChanged; |
1575 | } |
1575 | } |
1576 | |
1576 | |
1577 | #endif /* HAVE_BG_PIXMAP */ |
1577 | #endif /* HAVE_BG_PIXMAP */ |
1578 | |
1578 | |
1579 | #if defined(ENABLE_TRANSPARENCY) && !defined(HAVE_AFTERIMAGE) && !XRENDER |
1579 | #if defined(ENABLE_TRANSPARENCY) && !defined(HAVE_AFTERIMAGE) |
1580 | /* taken from aterm-0.4.2 */ |
1580 | /* taken from aterm-0.4.2 */ |
1581 | |
1581 | |
1582 | static void |
1582 | static void |
1583 | ShadeXImage(Visual *visual, XImage *srcImage, int shade, int rm, int gm, int bm) |
1583 | ShadeXImage(Visual *visual, XImage *srcImage, int shade, int rm, int gm, int bm) |
1584 | { |
1584 | { |