diff options
author | Bastian Stender <bst@pengutronix.de> | 2017-02-23 17:45:25 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-02-24 08:24:35 +0100 |
commit | 11f1728318fe2612ba496558e32245fa915a0961 (patch) | |
tree | a08d3edea8d60152de46e1d92b0d1200e7f4a7d0 | |
parent | a02e9d508229e30c12b18ca61ed3f8efcdfbb196 (diff) | |
download | barebox-11f1728318fe2612ba496558e32245fa915a0961.tar.gz barebox-11f1728318fe2612ba496558e32245fa915a0961.tar.xz |
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>
-rw-r--r-- | lib/gui/graphic_utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gui/graphic_utils.c b/lib/gui/graphic_utils.c index d3f5cce4b7..f6ab5ea0d1 100644 --- a/lib/gui/graphic_utils.c +++ b/lib/gui/graphic_utils.c @@ -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; |