Commit 5a9937be authored by Eli Zaretskii's avatar Eli Zaretskii

Minor cleanup in 'x_set_frame_alpha'

* src/xterm.c (x_set_frame_alpha): Remove redundant parts of
testing of value of 'alpha'.  Suggested by Konstantin
Kharlamov <Hi-Angel@yandex.ru>.  (Bug#35062)
parent d82d4fb9
Pipeline #1266 failed with stage
in 56 minutes and 56 seconds
......@@ -922,16 +922,17 @@ x_set_frame_alpha (struct frame *f)
else
alpha = f->alpha[1];
if (alpha < 0.0)
return;
if (FLOATP (Vframe_alpha_lower_limit))
alpha_min = XFLOAT_DATA (Vframe_alpha_lower_limit);
else if (FIXNUMP (Vframe_alpha_lower_limit))
alpha_min = (XFIXNUM (Vframe_alpha_lower_limit)) / 100.0;
if (alpha < 0.0)
return;
else if (alpha > 1.0)
if (alpha > 1.0)
alpha = 1.0;
else if (0.0 <= alpha && alpha < alpha_min && alpha_min <= 1.0)
else if (alpha < alpha_min && alpha_min <= 1.0)
alpha = alpha_min;
opac = alpha * OPAQUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment