9
0
Fork 0

graphic_utils: implement 8 bpp color depth in gu_set_pixel

Signed-off-by: Bastian Stender <bst@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Bastian Stender 2017-02-23 17:45:25 +01:00 committed by Sascha Hauer
parent a02e9d5082
commit 11f1728318
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ void gu_set_pixel(struct fb_info *info, void *adr, u32 px)
{
switch (info->bits_per_pixel) {
case 8:
*(u8 *)adr = px & 0xff;
break;
case 16:
*(u16 *)adr = px & 0xffff;