summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2008-11-12 15:50:00 +0000
committerChong Yidong <cyd@stupidchicken.com>2008-11-12 15:50:00 +0000
commitfd705d31b0c209157d65bf552d0c96deae05bea8 (patch)
tree9c683e656f8353cf14963fc1b30f1976ad56fff4
parentf67ccf2ae95d6422de5bb266bd59cbf96cf17679 (diff)
downloademacs-fd705d31b0c209157d65bf552d0c96deae05bea8.tar.gz
(x_set_frame_alpha): Do nothing if alpha is negative.
-rw-r--r--src/xterm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index eef22a51443..2a0f783580e 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -487,7 +487,9 @@ x_set_frame_alpha (f)
else if (INTEGERP (Vframe_alpha_lower_limit))
alpha_min = (XINT (Vframe_alpha_lower_limit)) / 100.0;
- if (alpha < 0.0 || 1.0 < alpha)
+ if (alpha < 0.0)
+ return;
+ else if (alpha > 1.0)
alpha = 1.0;
else if (0.0 <= alpha && alpha < alpha_min && alpha_min <= 1.0)
alpha = alpha_min;