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
cefecbcf
Commit
cefecbcf
authored
Jul 10, 2001
by
Gerd Moellmann
Browse files
(Fx_create_frame): Initialize frame colors to -1,
for the case that x_decode_colors signals an error.
parent
bbac5699
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/xfns.c
src/xfns.c
+10
-0
No files found.
src/xfns.c
View file @
cefecbcf
...
...
@@ -4182,6 +4182,16 @@ This function is an internal primitive--use `make-frame' instead.")
{
Lisp_Object black;
struct gcpro gcpro1;
/* Function x_decode_color can signal an error. Make
sure to initialize color slots so that we won't try
to free colors we haven't allocated. */
f->output_data.x->foreground_pixel = -1;
f->output_data.x->background_pixel = -1;
f->output_data.x->cursor_pixel = -1;
f->output_data.x->cursor_foreground_pixel = -1;
f->output_data.x->border_pixel = -1;
f->output_data.x->mouse_pixel = -1;
black = build_string ("black");
GCPRO1 (black);
...
...
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