diff options
author | Richard Grenville <pyxlcy@gmail.com> | 2012-10-28 17:02:07 +0800 |
---|---|---|
committer | Richard Grenville <pyxlcy@gmail.com> | 2012-10-28 17:02:07 +0800 |
commit | b04321083b171e4592bb2f3d0263058a752d801c (patch) | |
tree | 06465f17a9b7c9bbfe36120e00d597deb68b69ff /compton.h | |
parent | 00ce7d0de030b42958e80766534c9220d57873d3 (diff) | |
download | tdebase-b04321083b171e4592bb2f3d0263058a752d801c.tar.gz tdebase-b04321083b171e4592bb2f3d0263058a752d801c.zip |
Improvement: Change clear_shadow implementation
- Implement clear_shadow with painting region limitation instead of
calculation in shadow image, to make it work correctly on windows with
rounded corners, requested by funeral1988. This might cause more load
on CPU, but could mean less load for GPU. The original implementation
is kept but commented out.
- Code cleanup.
Diffstat (limited to 'compton.h')
-rw-r--r-- | compton.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -740,10 +740,11 @@ presum_gaussian(conv *map); static XImage * make_shadow(Display *dpy, double opacity, - int width, int height); + int width, int height, Bool clear_shadow); static Picture -shadow_picture(Display *dpy, double opacity, int width, int height); +shadow_picture(Display *dpy, double opacity, int width, int height, + Bool clear_shadow); static Picture solid_picture(Display *dpy, Bool argb, double a, @@ -923,6 +924,9 @@ static void determine_fade(Display *dpy, win *w); static void +win_update_shape(Display *dpy, win *w); + +static void determine_shadow(Display *dpy, win *w); static void |