Mercurial > emacs
changeset 99509:386d8aa805a2
(x_set_frame_alpha): Do nothing if alpha is negative.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Wed, 12 Nov 2008 15:51:11 +0000 |
parents | 122a33e0e881 |
children | a6f3b375799a |
files | src/w32term.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32term.c Wed Nov 12 15:50:00 2008 +0000 +++ b/src/w32term.c Wed Nov 12 15:51:11 2008 +0000 @@ -439,7 +439,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 (alpha < alpha_min && alpha_min <= 1.0) alpha = alpha_min;