summaryrefslogtreecommitdiff
path: root/xc/programs/xfs/difs/charinfo.c
diff options
context:
space:
mode:
authorgildea <empty>1994-02-04 17:07:09 +0000
committergildea <empty>1994-02-04 17:07:09 +0000
commite0dce71c24a802c7044f0b5e3b75f584a0c7e274 (patch)
tree5640fd7274ce6e0281887029a691ec45773bebc2 /xc/programs/xfs/difs/charinfo.c
parent1bd6521533d214e5f50f0820754715d3f8c2d258 (diff)
misc fixes from Nathan. XBUG #6239.
Diffstat (limited to 'xc/programs/xfs/difs/charinfo.c')
-rw-r--r--xc/programs/xfs/difs/charinfo.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/xc/programs/xfs/difs/charinfo.c b/xc/programs/xfs/difs/charinfo.c
index 6c4ca8485..99f6c852a 100644
--- a/xc/programs/xfs/difs/charinfo.c
+++ b/xc/programs/xfs/difs/charinfo.c
@@ -1,4 +1,4 @@
-/* $XConsortium: charinfo.c,v 1.9 93/08/24 18:49:39 gildea Exp $ */
+/* $XConsortium: charinfo.c,v 1.10 93/09/20 18:10:47 hersh Exp $ */
/*
* Copyright 1990, 1991 Network Computing Devices;
* Portions Copyright 1987 by Digital Equipment Corporation and the
@@ -172,7 +172,7 @@ GetExtents(client, pfont, flags, num_ranges, range, num_extents, data)
fsXCharInfo *ci;
fsXCharInfo cilocal;
char *pci;
- CharInfoPtr *xchars, *xchars_cur, *temp;
+ CharInfoPtr *xchars, *xchars_cur;
CharInfoPtr xci;
int nchars;
int err;
@@ -194,7 +194,6 @@ GetExtents(client, pfont, flags, num_ranges, range, num_extents, data)
ci = (fsXCharInfo *) pci;
*num_extents = nchars;
- temp = xchars;
/* pack the data */
xchars_cur = xchars;
@@ -206,11 +205,11 @@ GetExtents(client, pfont, flags, num_ranges, range, num_extents, data)
cilocal.right = xci->metrics.rightSideBearing;
cilocal.width = xci->metrics.characterWidth;
cilocal.attributes = xci->metrics.attributes;
- memmove( pci, &cilocal, SIZEOF(fsXCharInfo));
+ bcopy(&cilocal, pci, SIZEOF(fsXCharInfo));
pci += SIZEOF(fsXCharInfo);
}
- fsfree (temp);
+ fsfree (xchars);
*data = ci;
@@ -345,11 +344,8 @@ packGlyphs (client, pfont, format, flags, num_ranges, range, tsize, num_glyphs,
if ((char *) gdata + size != bitc->bits)
contiguous = FALSE;
if (mappad == BitmapFormatImageRectMin)
- {
dstbpr = GLYPH_SIZE(inkc, scanlinepad);
- srcbpr = GLYPH_SIZE(bitc, src_glyph_pad);
- if (dstbpr != srcbpr) reformat = TRUE;
- }
+ if (dstbpr != GLYPH_SIZE(bitc, src_glyph_pad)) reformat = TRUE;
if (mappad != BitmapFormatImageRectMax)
{
height = inkc->metrics.ascent + inkc->metrics.descent;