mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/3] graphic_utils: implement 8 bpp color depth in gu_set_pixel
@ 2017-02-23 16:45 Bastian Stender
  2017-02-23 16:45 ` [PATCH 2/3] graphic_utils: do not allocate info in fb_open Bastian Stender
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Bastian Stender @ 2017-02-23 16:45 UTC (permalink / raw)
  To: barebox; +Cc: Bastian Stender

Signed-off-by: Bastian Stender <bst@pengutronix.de>
---
 lib/gui/graphic_utils.c | 1 +
 1 file changed, 1 insertion(+)

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;
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-24  7:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-23 16:45 [PATCH 1/3] graphic_utils: implement 8 bpp color depth in gu_set_pixel Bastian Stender
2017-02-23 16:45 ` [PATCH 2/3] graphic_utils: do not allocate info in fb_open Bastian Stender
2017-02-23 16:45 ` [PATCH 3/3] 2d-primitives: check dimensions in __illuminate Bastian Stender
2017-02-24  7:24 ` [PATCH 1/3] graphic_utils: implement 8 bpp color depth in gu_set_pixel Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox