diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsfns.m | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/nsfns.m b/src/nsfns.m index f99420ced27..9414f47d833 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -1545,32 +1545,6 @@ If VALUE is nil, the default is removed. */) | |||
| 1545 | } | 1545 | } |
| 1546 | 1546 | ||
| 1547 | 1547 | ||
| 1548 | DEFUN ("ns-set-alpha", Fns_set_alpha, Sns_set_alpha, 2, 2, 0, | ||
| 1549 | doc: /* Return a color equivalent to COLOR with alpha setting ALPHA. | ||
| 1550 | The argument ALPHA should be a number between 0 and 1, where 0 is full | ||
| 1551 | transparency and 1 is opaque. */) | ||
| 1552 | (color, alpha) | ||
| 1553 | Lisp_Object color; | ||
| 1554 | Lisp_Object alpha; | ||
| 1555 | { | ||
| 1556 | NSColor *col; | ||
| 1557 | float a; | ||
| 1558 | |||
| 1559 | CHECK_STRING (color); | ||
| 1560 | CHECK_NUMBER_OR_FLOAT (alpha); | ||
| 1561 | |||
| 1562 | if (ns_lisp_to_color (color, &col)) | ||
| 1563 | error ("Unknown color"); | ||
| 1564 | |||
| 1565 | a = XFLOATINT (alpha); | ||
| 1566 | if (a < 0.0 || a > 1.0) | ||
| 1567 | error ("Alpha value should be between 0 and 1 inclusive"); | ||
| 1568 | |||
| 1569 | col = [col colorWithAlphaComponent: a]; | ||
| 1570 | return ns_color_to_lisp (col); | ||
| 1571 | } | ||
| 1572 | |||
| 1573 | |||
| 1574 | DEFUN ("x-server-max-request-size", Fx_server_max_request_size, | 1548 | DEFUN ("x-server-max-request-size", Fx_server_max_request_size, |
| 1575 | Sx_server_max_request_size, | 1549 | Sx_server_max_request_size, |
| 1576 | 0, 1, 0, | 1550 | 0, 1, 0, |
| @@ -2700,7 +2674,6 @@ be used as the image of the icon representing the frame. */); | |||
| 2700 | defsubr (&Sx_display_backing_store); | 2674 | defsubr (&Sx_display_backing_store); |
| 2701 | defsubr (&Sx_display_save_under); | 2675 | defsubr (&Sx_display_save_under); |
| 2702 | defsubr (&Sx_create_frame); | 2676 | defsubr (&Sx_create_frame); |
| 2703 | defsubr (&Sns_set_alpha); | ||
| 2704 | defsubr (&Sx_open_connection); | 2677 | defsubr (&Sx_open_connection); |
| 2705 | defsubr (&Sx_close_connection); | 2678 | defsubr (&Sx_close_connection); |
| 2706 | defsubr (&Sx_display_list); | 2679 | defsubr (&Sx_display_list); |