changeset 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 238d8e4caa27
children 386d8aa805a2
files src/xterm.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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;