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
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
df5a440b
Commit
df5a440b
authored
Feb 18, 1994
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(dumpglyphs): Try various alternatives for foreground color
of a glyph with the cursor on it.
parent
812361a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
src/xterm.c
src/xterm.c
+19
-1
No files found.
src/xterm.c
View file @
df5a440b
...
@@ -569,7 +569,25 @@ dumpglyphs (f, left, top, gp, n, hl)
...
@@ -569,7 +569,25 @@ dumpglyphs (f, left, top, gp, n, hl)
unsigned
long
mask
;
unsigned
long
mask
;
xgcv
.
background
=
f
->
display
.
x
->
cursor_pixel
;
xgcv
.
background
=
f
->
display
.
x
->
cursor_pixel
;
xgcv
.
foreground
=
f
->
display
.
x
->
cursor_foreground_pixel
;
if
(
face
==
FRAME_DEFAULT_FACE
(
f
))
xgcv
.
foreground
=
f
->
display
.
x
->
cursor_foreground_pixel
;
else
xgcv
.
foreground
=
face
->
foreground
;
/* If the glyph would be invisible,
try a different foreground. */
if
(
xgcv
.
foreground
==
xgcv
.
background
)
xgcv
.
foreground
=
face
->
background
;
if
(
xgcv
.
foreground
==
xgcv
.
background
)
xgcv
.
foreground
=
f
->
display
.
x
->
cursor_foreground_pixel
;
if
(
xgcv
.
foreground
==
xgcv
.
background
)
xgcv
.
foreground
=
face
->
foreground
;
/* Make sure the cursor is distinct from text in this face. */
if
(
xgcv
.
background
==
face
->
background
&&
xgcv
.
foreground
==
face
->
foreground
)
{
xgcv
.
background
=
face
->
foreground
;
xgcv
.
foreground
=
face
->
background
;
}
xgcv
.
font
=
face
->
font
->
fid
;
xgcv
.
font
=
face
->
font
->
fid
;
xgcv
.
graphics_exposures
=
0
;
xgcv
.
graphics_exposures
=
0
;
mask
=
GCForeground
|
GCBackground
|
GCFont
|
GCGraphicsExposures
;
mask
=
GCForeground
|
GCBackground
|
GCFont
|
GCGraphicsExposures
;
...
...
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