9
0
Fork 0

graphic_utils: set_pixel only write 16bit in 16bit mode

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2014-12-23 19:21:52 +01:00 committed by Sascha Hauer
parent 631be8e6cb
commit 461710b119
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ void set_pixel(struct fb_info *info, void *adr, u32 px)
case 8:
break;
case 16:
*(u16 *)adr = px;
*(u16 *)adr = px & 0xffff;
break;
case 32:
*(u32 *)adr = px;