Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1333 → Rev 1334

/kernel/trunk/genarch/src/fb/fb.c
91,7 → 91,7
{
unsigned int startbyte = POINTPOS(x, y);
 
#ifdef BIG_ENDIAN
#if (defined(BIG_ENDIAN) || defined(FB_BIG_ENDIAN))
fbaddress[startbyte] = RED(color, 8);
fbaddress[startbyte + 1] = GREEN(color, 8);
fbaddress[startbyte + 2] = BLUE(color, 8);
107,7 → 107,7
{
unsigned int startbyte = POINTPOS(x, y);
 
#ifdef BIG_ENDIAN
#if (defined(BIG_ENDIAN) || defined(FB_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];