Mercurial > emacs
diff src/xterm.c @ 99508:122a33e0e881
(x_set_frame_alpha): Do nothing if alpha is negative.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Wed, 12 Nov 2008 15:50:00 +0000 |
parents | c04fb0278b64 |
children | 651ff4b959b3 |
line wrap: on
line diff
--- a/src/xterm.c Wed Nov 12 15:49:45 2008 +0000 +++ b/src/xterm.c Wed Nov 12 15:50:00 2008 +0000 @@ -487,7 +487,9 @@ 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;