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
30b7f3e6
Commit
30b7f3e6
authored
Dec 01, 2007
by
Jason Rumney
Browse files
(w32_face_attributes): Comment previous change.
parent
f1e8dcf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/w32console.c
src/w32console.c
+7
-4
No files found.
src/w32console.c
View file @
30b7f3e6
...
...
@@ -517,12 +517,15 @@ w32_face_attributes (f, face_id)
if
(
NILP
(
Vtty_defined_color_alist
))
return
char_attr
;
if
(
face
->
foreground
>=
0
&&
face
->
foreground
<
16
)
/* Colors should be in the range 0...15 unless they are one of
FACE_TTY_DEFAULT_COLOR, FACE_TTY_DEFAULT_FG_COLOR or
FACE_TTY_DEFAULT_BG_COLOR. Other out of range colors are
invalid, so it is better to use the default color if they ever
get through to here. */
if
(
face
->
foreground
>=
0
&&
face
->
foreground
<
16
)
char_attr
=
(
char_attr
&
0xfff0
)
+
face
->
foreground
;
if
(
face
->
background
>=
0
&&
face
->
background
<
16
)
if
(
face
->
background
>=
0
&&
face
->
background
<
16
)
char_attr
=
(
char_attr
&
0xff0f
)
+
(
face
->
background
<<
4
);
return
char_attr
;
...
...
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