Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
67b03f5d
Commit
67b03f5d
authored
May 22, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Nov 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NXglyph.c: adapt FindGlyph() to better match render/glyph.c
no function change
parent
73f88998
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
19 deletions
+24
-19
NXglyph.c
nx-X11/programs/Xserver/hw/nxagent/NXglyph.c
+24
-19
No files found.
nx-X11/programs/Xserver/hw/nxagent/NXglyph.c
View file @
67b03f5d
...
...
@@ -161,30 +161,35 @@ AddGlyph (GlyphSetPtr glyphSet, GlyphPtr glyph, Glyph id)
CheckDuplicates
(
&
globalGlyphs
[
glyphSet
->
fdepth
],
"AddGlyph bottom"
);
}
GlyphPtr
FindGlyph
(
GlyphSetPtr
glyphSet
,
Glyph
id
)
GlyphPtr
FindGlyph
(
GlyphSetPtr
glyphSet
,
Glyph
id
)
{
GlyphRefPtr
gr
;
GlyphPtr
glyph
;
gr
=
FindGlyphRef
(
&
glyphSet
->
hash
,
id
,
FALSE
,
0
);
glyph
=
gr
->
glyph
;
if
(
glyph
==
DeletedGlyph
)
{
glyph
=
0
;
}
else
if
(
gr
->
corruptedGlyph
==
1
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"FindGlyphRef: Going to synchronize the glyph [%p] for glyphset [%p].
\n
"
,
GlyphPtr
glyph
;
#ifdef NXAGENT_SERVER
GlyphRefPtr
gr
=
FindGlyphRef
(
&
glyphSet
->
hash
,
id
,
FALSE
,
0
);
glyph
=
gr
->
glyph
;
#else
glyph
=
FindGlyphRef
(
&
glyphSet
->
hash
,
id
,
FALSE
,
0
)
->
glyph
;
#endif
if
(
glyph
==
DeletedGlyph
)
{
glyph
=
0
;
}
#ifdef NXAGENT_SERVER
else
if
(
gr
->
corruptedGlyph
==
1
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"FindGlyphRef: Going to synchronize the glyph [%p] for glyphset [%p].
\n
"
,
(
void
*
)
glyph
,
(
void
*
)
glyphSet
);
#endif
#endif
nxagentAddGlyphs
(
glyphSet
,
&
id
,
&
(
glyph
->
info
),
1
,
nxagentAddGlyphs
(
glyphSet
,
&
id
,
&
(
glyph
->
info
),
1
,
(
CARD8
*
)(
glyph
+
1
),
glyph
->
size
-
sizeof
(
xGlyphInfo
));
}
}
#endif
return
glyph
;
return
glyph
;
}
Bool
...
...
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