dont clear shadow on small windows

This commit is contained in:
Christopher Jeffrey 2012-02-04 21:04:02 -06:00
parent a2028a02f3
commit 6a71094d8a
1 changed files with 12 additions and 10 deletions

View File

@ -662,7 +662,7 @@ make_shadow(Display *dpy, double opacity,
}
// zero extra pixels
//if (width > gsize && height > gsize) {
if (width > gsize && height > gsize) {
//int r = shadow_radius;
//int sr = r + 4;
//int er = r + 8;
@ -671,7 +671,9 @@ make_shadow(Display *dpy, double opacity,
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] = 0;
data[y * swidth + x] = 50;
}
}
}