Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
2f8e69cc
Commit
2f8e69cc
authored
Nov 12, 2008
by
Chong Yidong
Browse files
(x_set_frame_alpha): Do nothing if alpha is negative.
parent
7e849c17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
src/w32term.c
src/w32term.c
+3
-1
src/xterm.c
src/xterm.c
+3
-1
No files found.
src/w32term.c
View file @
2f8e69cc
...
...
@@ -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;
...
...
src/xterm.c
View file @
2f8e69cc
...
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment