Mercurial > emacs
comparison src/xterm.c @ 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 | c04fb0278b64 |
children | 651ff4b959b3 |
comparison
equal
deleted
inserted
replaced
99507:238d8e4caa27 | 99508:122a33e0e881 |
---|---|
485 if (FLOATP (Vframe_alpha_lower_limit)) | 485 if (FLOATP (Vframe_alpha_lower_limit)) |
486 alpha_min = XFLOAT_DATA (Vframe_alpha_lower_limit); | 486 alpha_min = XFLOAT_DATA (Vframe_alpha_lower_limit); |
487 else if (INTEGERP (Vframe_alpha_lower_limit)) | 487 else if (INTEGERP (Vframe_alpha_lower_limit)) |
488 alpha_min = (XINT (Vframe_alpha_lower_limit)) / 100.0; | 488 alpha_min = (XINT (Vframe_alpha_lower_limit)) / 100.0; |
489 | 489 |
490 if (alpha < 0.0 || 1.0 < alpha) | 490 if (alpha < 0.0) |
491 return; | |
492 else if (alpha > 1.0) | |
491 alpha = 1.0; | 493 alpha = 1.0; |
492 else if (0.0 <= alpha && alpha < alpha_min && alpha_min <= 1.0) | 494 else if (0.0 <= alpha && alpha < alpha_min && alpha_min <= 1.0) |
493 alpha = alpha_min; | 495 alpha = alpha_min; |
494 | 496 |
495 opac = alpha * OPAQUE; | 497 opac = alpha * OPAQUE; |