Commit 67b03f5d authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

NXglyph.c: adapt FindGlyph() to better match render/glyph.c

no function change
parent 73f88998
...@@ -161,30 +161,35 @@ AddGlyph (GlyphSetPtr glyphSet, GlyphPtr glyph, Glyph id) ...@@ -161,30 +161,35 @@ AddGlyph (GlyphSetPtr glyphSet, GlyphPtr glyph, Glyph id)
CheckDuplicates (&globalGlyphs[glyphSet->fdepth], "AddGlyph bottom"); CheckDuplicates (&globalGlyphs[glyphSet->fdepth], "AddGlyph bottom");
} }
GlyphPtr FindGlyph (GlyphSetPtr glyphSet, Glyph id) GlyphPtr
FindGlyph (GlyphSetPtr glyphSet, Glyph id)
{ {
GlyphRefPtr gr; GlyphPtr glyph;
GlyphPtr glyph;
#ifdef NXAGENT_SERVER
gr = FindGlyphRef (&glyphSet->hash, id, FALSE, 0); GlyphRefPtr gr = FindGlyphRef (&glyphSet->hash, id, FALSE, 0);
glyph = gr -> glyph; glyph = gr -> glyph;
#else
if (glyph == DeletedGlyph) glyph = FindGlyphRef (&glyphSet->hash, id, FALSE, 0)->glyph;
{ #endif
glyph = 0; if (glyph == DeletedGlyph)
} {
else if (gr -> corruptedGlyph == 1) glyph = 0;
{ }
#ifdef DEBUG #ifdef NXAGENT_SERVER
fprintf(stderr, "FindGlyphRef: Going to synchronize the glyph [%p] for glyphset [%p].\n", else if (gr -> corruptedGlyph == 1)
{
#ifdef DEBUG
fprintf(stderr, "FindGlyphRef: Going to synchronize the glyph [%p] for glyphset [%p].\n",
(void *) glyph, (void *) glyphSet); (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)); (CARD8*)(glyph + 1), glyph -> size - sizeof(xGlyphInfo));
} }
#endif
return glyph; return glyph;
} }
Bool Bool
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment