Subversion Repositories HelenOS

Compare Revisions

Regard whitespace Rev 1298 → Rev 1287

/kernel/trunk/genarch/src/fb/fb.c
85,15 → 85,9
{
unsigned int startbyte = POINTPOS(x, y);
 
#ifdef BIG_ENDIAN
fbaddress[startbyte] = RED(color, 8);
fbaddress[startbyte + 1] = GREEN(color, 8);
fbaddress[startbyte + 2] = BLUE(color, 8);
#else
fbaddress[startbyte + 2] = RED(color, 8);
fbaddress[startbyte + 1] = GREEN(color, 8);
fbaddress[startbyte + 0] = BLUE(color, 8);
#endif
}
 
/** Return pixel color - 24-bit depth */
101,11 → 95,7
{
unsigned int startbyte = POINTPOS(x, y);
 
#ifdef BIG_ENDIAN
return fbaddress[startbyte] << 16 | fbaddress[startbyte + 1] << 8 | fbaddress[startbyte + 2];
#else
return fbaddress[startbyte + 2] << 16 | fbaddress[startbyte + 1] << 8 | fbaddress[startbyte + 0];
#endif
}
 
/** Put pixel - 16-bit depth (5:6:6) */