--- drawops/cfb24.c.orig 2002-10-08 16:20:27.000000000 +0200 +++ drawops/cfb24.c 2004-10-17 15:08:02.000000000 +0200 @@ -33,9 +33,9 @@ static void cfb24_setpixel(u32 x, u32 y, u8 *dst; dst = &screen[y*screen_width+x*3]; - dst[0] = (pixel >> 16) & 0xff; + dst[2] = (pixel >> 16) & 0xff; dst[1] = (pixel >> 8) & 0xff; - dst[2] = pixel & 0xff; + dst[0] = pixel & 0xff; } static pixel_t cfb24_getpixel(u32 x, u32 y) @@ -43,7 +43,7 @@ static pixel_t cfb24_getpixel(u32 x, u32 const u8 *src; src = &screen[y*screen_width+x*3]; - return (src[0] << 16) | (src[1] << 8) | src[2]; + return (src[2] << 16) | (src[1] << 8) | src[0]; } const struct drawops cfb24_drawops = {