Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- fbv-1.0b/fb_display.c.orig 2011-11-21 16:44:50.172260000 -0500
- +++ fbv-1.0b/fb_display.c 2011-11-21 16:45:46.808260000 -0500
- @@ -31,6 +31,7 @@
- #include <asm/types.h>
- #include <string.h>
- #include <errno.h>
- +#include <endian.h>
- #include "config.h"
- /* Public Use Functions:
- *
- @@ -300,7 +301,7 @@
- inline static unsigned short make16color(unsigned char r, unsigned char g, unsigned char b)
- {
- - return (
- + return htobe16(
- (((r >> 3) & 31) << 11) |
- (((g >> 2) & 63) << 5) |
- ((b >> 3) & 31) );
Add Comment
Please, Sign In to add comment