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
68d0f8a5
Commit
68d0f8a5
authored
Jul 16, 2009
by
YAMAMOTO Mitsuharu
Browse files
(Fns_set_alpha): Remove function.
(syms_of_nsfns): Don't defsubr it.
parent
6ad032d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
+0
-27
src/nsfns.m
src/nsfns.m
+0
-27
No files found.
src/nsfns.m
View file @
68d0f8a5
...
...
@@ -1545,32 +1545,6 @@ Turn the input menu (an NSMenu) into a lisp list for tracking on lisp side
}
DEFUN
(
"ns-set-alpha"
,
Fns_set_alpha
,
Sns_set_alpha
,
2
,
2
,
0
,
doc
:
/* Return a color equivalent to COLOR with alpha setting ALPHA.
The argument ALPHA should be a number between 0 and 1, where 0 is full
transparency and 1 is opaque. */
)
(
color
,
alpha
)
Lisp_Object
color
;
Lisp_Object
alpha
;
{
NSColor
*
col
;
float
a
;
CHECK_STRING
(
color
);
CHECK_NUMBER_OR_FLOAT
(
alpha
);
if
(
ns_lisp_to_color
(
color
,
&
col
))
error
(
"Unknown color"
);
a
=
XFLOATINT
(
alpha
);
if
(
a
<
0
.
0
||
a
>
1
.
0
)
error
(
"Alpha value should be between 0 and 1 inclusive"
);
col
=
[
col
colorWithAlphaComponent
:
a
];
return
ns_color_to_lisp
(
col
);
}
DEFUN
(
"x-server-max-request-size"
,
Fx_server_max_request_size
,
Sx_server_max_request_size
,
0
,
1
,
0
,
...
...
@@ -2700,7 +2674,6 @@ - (NSString *)panel: (id)sender userEnteredFilename: (NSString *)filename
defsubr
(
&
Sx_display_backing_store
);
defsubr
(
&
Sx_display_save_under
);
defsubr
(
&
Sx_create_frame
);
defsubr
(
&
Sns_set_alpha
);
defsubr
(
&
Sx_open_connection
);
defsubr
(
&
Sx_close_connection
);
defsubr
(
&
Sx_display_list
);
...
...
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