projects
/
dana
/
urxvt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06b4dea
)
added sanity checking for shade parameter to accomodate previously supported negative...
author
sasha
<sasha>
Mon, 29 Oct 2007 13:39:43 +0000
(13:39 +0000)
committer
sasha
<sasha>
Mon, 29 Oct 2007 13:39:43 +0000
(13:39 +0000)
src/background.C
patch
|
blob
|
history
diff --git
a/src/background.C
b/src/background.C
index 06088fef68a562df0f50ca9b906f5fc5b5e7585f..eac87fe365bfe7f1744a283e76898aa16ce035af 100644
(file)
--- a/
src/background.C
+++ b/
src/background.C
@@
-743,7
+743,9
@@
bgPixmap_t::set_shade (const char *shade_str)
{
int new_shade = (shade_str) ? atoi (shade_str) : 0;
- if (new_shade == 100)
+ if (new_shade < 0 && new_shade > -100)
+ new_shade = 200 - (100 + new_shade);
+ else if (new_shade == 100)
new_shade = 0;
if (new_shade != shade)