[OpenBIOS] [PATCH] 256 colours framebuffer fill

Olivier DANET odanet at caramail.com
Mon Jan 14 00:56:41 CET 2013


[PATCH] 256 colours framebuffer fill
 256 colours framebuffers are arrays of chars, not short integers.

diff a/openbios-devel/packages/video.c b/openbios-devel/packages/video.c
--- a/openbios-devel/packages/video.c
+++ b/openbios-devel/packages/video.c
@@ -159,8 +159,7 @@ fill_rect( int col_ind, int x, int y, in
 while( ww-- )
 *p++ = col;
 } else {
-                        char *p = (char *)((unsigned short*)pp + x);
-
+            char *p = pp + x;
 while( ww-- )
 *p++ = col;
 }

Signed-off-by: Olivier DANET <odanet at caramail.com>




More information about the OpenBIOS mailing list