dont clear shadow on small windows
This commit is contained in:
parent
a2028a02f3
commit
6a71094d8a
22
compton.c
22
compton.c
|
@ -662,16 +662,18 @@ make_shadow(Display *dpy, double opacity,
|
|||
}
|
||||
|
||||
// zero extra pixels
|
||||
//if (width > gsize && height > gsize) {
|
||||
//int r = shadow_radius;
|
||||
//int sr = r + 4;
|
||||
//int er = r + 8;
|
||||
int r = gsize / 2;
|
||||
int sr = r - 2;
|
||||
int er = r + 4;
|
||||
for (y = sr; y < (sheight - er); y++) {
|
||||
for (x = sr; x < (swidth - er); x++) {
|
||||
data[y * swidth + x] = 0;
|
||||
if (width > gsize && height > gsize) {
|
||||
//int r = shadow_radius;
|
||||
//int sr = r + 4;
|
||||
//int er = r + 8;
|
||||
int r = gsize / 2;
|
||||
int sr = r - 2;
|
||||
int er = r + 4;
|
||||
for (y = sr; y < (sheight - er); y++) {
|
||||
for (x = sr; x < (swidth - er); x++) {
|
||||
//data[y * swidth + x] = 0;
|
||||
data[y * swidth + x] = 50;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue