From cf5ba98c10508be4f8c10459b431806686df216c Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Mon, 30 Jan 2012 08:22:36 +0100 Subject: firmware/fb: Fixed color component shift --- src/target/firmware/fb/fb_rgb332.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/target/firmware/fb') diff --git a/src/target/firmware/fb/fb_rgb332.c b/src/target/firmware/fb/fb_rgb332.c index 9955d16c..72ed87b8 100644 --- a/src/target/firmware/fb/fb_rgb332.c +++ b/src/target/firmware/fb/fb_rgb332.c @@ -90,7 +90,7 @@ fb_rgb332_update_damage( static uint8_t rgb_to_pixel(uint32_t color){ uint8_t ret; ret = (FB_COLOR_TO_R(color) & 0xe0); /* 765 = RRR */ - ret |= (FB_COLOR_TO_G(color) & 0xe0) >> 2; /* 432 = GGG */ + ret |= (FB_COLOR_TO_G(color) & 0xe0) >> 3; /* 432 = GGG */ ret |= (FB_COLOR_TO_B(color) & 0xc0) >> 6; /* 10 = BB */ return ret; } -- cgit v1.2.3