upload tizen2.0 source
[framework/uifw/xorg/lib/libxfont.git] / src / util / utilbitmap.c
old mode 100755 (executable)
new mode 100644 (file)
index 5feb2d1..ec726b8
@@ -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;