Skip to content

Commit

Permalink
NXglyph.c: mark NX changes
Browse files Browse the repository at this point in the history
  • Loading branch information
uli42 committed Jun 21, 2019
1 parent 6f977ce commit 627641e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion nx-X11/programs/Xserver/hw/nxagent/NXglyph.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,18 +274,21 @@ miGlyphs (CARD8 op,
BoxRec extents;
CARD32 component_alpha;

#ifdef NXAGENT_SERVER
/*
* Get rid of the warning.
*/

extents.x1 = 0;
extents.y1 = 0;
#endif

if (maskFormat)
{
GCPtr pGC;
xRectangle rect;

#ifdef NXAGENT_SERVER
if (nxagentGlyphsExtents != NullBox)
{
memcpy(&extents, nxagentGlyphsExtents, sizeof(BoxRec));
Expand All @@ -298,6 +301,9 @@ miGlyphs (CARD8 op,

memcpy(nxagentGlyphsExtents, &extents, sizeof(BoxRec));
}
#else
GlyphExtents (nlist, list, glyphs, &extents);
#endif

if (extents.x2 <= extents.x1 || extents.y2 <= extents.y1)
return;
Expand Down Expand Up @@ -369,6 +375,7 @@ miGlyphs (CARD8 op,
glyph->info.width, glyph->info.height,
0, 0, -1, (void *) (glyph + 1));

#ifdef NXAGENT_SERVER
/*
* The following line fixes a problem with glyphs that appeared
* as clipped. It was a side effect due the validate function
Expand All @@ -378,7 +385,7 @@ miGlyphs (CARD8 op,
*/

pPicture->pDrawable->serialNumber = NEXT_SERIAL_NUMBER;

#endif
pPixmap->drawable.serialNumber = NEXT_SERIAL_NUMBER;
if (maskFormat)
{
Expand Down

0 comments on commit 627641e

Please sign in to comment.