From: Chong Yidong Date: Wed, 12 Nov 2008 15:51:11 +0000 (+0000) Subject: (x_set_frame_alpha): Do nothing if alpha is negative. X-Git-Tag: emacs-pretest-23.0.90~1870 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2f8e69cccae47fcf95e3b4157457456e4147f78a;p=emacs.git (x_set_frame_alpha): Do nothing if alpha is negative. --- diff --git a/src/w32term.c b/src/w32term.c index 7201455e1ff..3e73ceba428 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -439,7 +439,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 (alpha < alpha_min && alpha_min <= 1.0) alpha = alpha_min; 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;