[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@caramail.com