comparison src/fringe.c @ 109736:b817fe3a4e35

merge trunk
author Kenichi Handa <handa@etlken>
date Tue, 10 Aug 2010 10:24:32 +0900
parents 470bed744331
children 417b1e4d63cd
comparison
equal deleted inserted replaced
109734:650ab6e37354 109736:b817fe3a4e35
1492 b = (unsigned short)((swap_nibble[b & 0xf] << 12) 1492 b = (unsigned short)((swap_nibble[b & 0xf] << 12)
1493 | (swap_nibble[(b>>4) & 0xf] << 8) 1493 | (swap_nibble[(b>>4) & 0xf] << 8)
1494 | (swap_nibble[(b>>8) & 0xf] << 4) 1494 | (swap_nibble[(b>>8) & 0xf] << 4)
1495 | (swap_nibble[(b>>12) & 0xf])); 1495 | (swap_nibble[(b>>12) & 0xf]));
1496 b >>= (16 - fb->width); 1496 b >>= (16 - fb->width);
1497 #ifdef WORDS_BIG_ENDIAN 1497 #ifdef WORDS_BIGENDIAN
1498 b = ((b >> 8) | (b << 8)); 1498 b = ((b >> 8) | (b << 8));
1499 #endif 1499 #endif
1500 *bits++ = b; 1500 *bits++ = b;
1501 } 1501 }
1502 } 1502 }