aboutsummaryrefslogtreecommitdiffstats
path: root/src/nsfns.m
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2009-07-16 08:23:54 +0000
committerYAMAMOTO Mitsuharu2009-07-16 08:23:54 +0000
commit68d0f8a54cbb4bdb070fae27db440f25fe58724d (patch)
tree5d5c3119a4fba8a4b6bd73aab75db2fe6bf72c1f /src/nsfns.m
parent6ad032d24d6005c7b142e13b3eb42cca8641049b (diff)
downloademacs-68d0f8a54cbb4bdb070fae27db440f25fe58724d.tar.gz
emacs-68d0f8a54cbb4bdb070fae27db440f25fe58724d.zip
(Fns_set_alpha): Remove function.
(syms_of_nsfns): Don't defsubr it.
Diffstat (limited to 'src/nsfns.m')
-rw-r--r--src/nsfns.m27
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
1548DEFUN ("ns-set-alpha", Fns_set_alpha, Sns_set_alpha, 2, 2, 0,
1549 doc: /* Return a color equivalent to COLOR with alpha setting ALPHA.
1550The argument ALPHA should be a number between 0 and 1, where 0 is full
1551transparency 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
1574DEFUN ("x-server-max-request-size", Fx_server_max_request_size, 1548DEFUN ("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);