From d0f70707dde032e662dbd5bc70df6ac915403abe Mon Sep 17 00:00:00 2001 From: marha Date: Mon, 8 Sep 2014 23:42:34 +0200 Subject: Updated to libXfont 1.5.0 --- libXfont/src/util/utilbitmap.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'libXfont/src/util/utilbitmap.c') diff --git a/libXfont/src/util/utilbitmap.c b/libXfont/src/util/utilbitmap.c index 5feb2d133..ec726b8a4 100644 --- a/libXfont/src/util/utilbitmap.c +++ b/libXfont/src/util/utilbitmap.c @@ -106,7 +106,7 @@ FourByteSwap(unsigned char *buf, int nbytes) { unsigned char c; - for (; nbytes > 0; nbytes -= 4, buf += 4) + for (; nbytes > 0; nbytes -= 4, buf += 4) { c = buf[0]; buf[0] = buf[3]; @@ -122,8 +122,8 @@ FourByteSwap(unsigned char *buf, int nbytes) */ int -RepadBitmap (char *pSrc, char *pDst, - unsigned int srcPad, unsigned int dstPad, +RepadBitmap (char *pSrc, char *pDst, + unsigned int srcPad, unsigned int dstPad, int width, int height) { int srcWidthBytes,dstWidthBytes; @@ -131,33 +131,33 @@ RepadBitmap (char *pSrc, char *pDst, char *pTmpSrc,*pTmpDst; switch (srcPad) { - case 1: + case 1: srcWidthBytes = (width+7)>>3; break; case 2: srcWidthBytes = ((width+15)>>4)<<1; break; - case 4: + case 4: srcWidthBytes = ((width+31)>>5)<<2; break; - case 8: - srcWidthBytes = ((width+63)>>6)<<3; + case 8: + srcWidthBytes = ((width+63)>>6)<<3; break; default: return 0; } switch (dstPad) { - case 1: + case 1: dstWidthBytes = (width+7)>>3; break; case 2: dstWidthBytes = ((width+15)>>4)<<1; break; - case 4: + case 4: dstWidthBytes = ((width+31)>>5)<<2; break; - case 8: - dstWidthBytes = ((width+63)>>6)<<3; + case 8: + dstWidthBytes = ((width+63)>>6)<<3; break; default: return 0; -- cgit v1.2.3