diff options
Diffstat (limited to 'src/util/utilbitmap.c')
-rw-r--r-- | src/util/utilbitmap.c | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/src/util/utilbitmap.c b/src/util/utilbitmap.c index 9842db1..c407f29 100644 --- a/src/util/utilbitmap.c +++ b/src/util/utilbitmap.c @@ -25,11 +25,14 @@ used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ +/* $XFree86: xc/lib/font/util/utilbitmap.c,v 1.5 2001/12/14 19:56:57 dawes Exp $ */ /* * Author: Keith Packard, MIT X Consortium */ +#include "fontmisc.h" + /* Utility functions for reformating font bitmaps */ static unsigned char _reverse_byte[0x100] = { @@ -71,11 +74,9 @@ static unsigned char _reverse_byte[0x100] = { * Invert bit order within each BYTE of an array. */ void -BitOrderInvert(buf, nbytes) - register unsigned char *buf; - register int nbytes; +BitOrderInvert(unsigned char *buf, int nbytes) { - register unsigned char *rev = _reverse_byte; + unsigned char *rev = _reverse_byte; for (; --nbytes >= 0; buf++) *buf = rev[*buf]; @@ -85,11 +86,9 @@ BitOrderInvert(buf, nbytes) * Invert byte order within each 16-bits of an array. */ void -TwoByteSwap(buf, nbytes) - register unsigned char *buf; - register int nbytes; +TwoByteSwap(unsigned char *buf, int nbytes) { - register unsigned char c; + unsigned char c; for (; nbytes > 0; nbytes -= 2, buf += 2) { @@ -103,11 +102,9 @@ TwoByteSwap(buf, nbytes) * Invert byte order within each 32-bits of an array. */ void -FourByteSwap(buf, nbytes) - register unsigned char *buf; - register int nbytes; +FourByteSwap(unsigned char *buf, int nbytes) { - register unsigned char c; + unsigned char c; for (; nbytes > 0; nbytes -= 4, buf += 4) { @@ -125,10 +122,9 @@ FourByteSwap(buf, nbytes) */ int -RepadBitmap (pSrc, pDst, srcPad, dstPad, width, height) - char *pSrc, *pDst; - unsigned srcPad, dstPad; - int width, height; +RepadBitmap (char *pSrc, char *pDst, + unsigned int srcPad, unsigned int dstPad, + int width, int height) { int srcWidthBytes,dstWidthBytes; int row,col; |