j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: mcayland Date: Wed Jan 16 23:51:38 2013 New Revision: 1090 URL: http://tracker.coreboot.org/trac/openbios/changeset/1090
Log: video.c: Fix incorrect sized type in fill_rect().
256 colour framebuffers are arrays of chars, not short integers.
Signed-off-by: Olivier DANET odanet@caramail.com Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk
Modified: trunk/openbios-devel/packages/video.c
Modified: trunk/openbios-devel/packages/video.c ============================================================================== --- trunk/openbios-devel/packages/video.c Sun Jan 13 16:27:00 2013 (r1089) +++ trunk/openbios-devel/packages/video.c Wed Jan 16 23:51:38 2013 (r1090) @@ -159,7 +159,7 @@ while( ww-- ) *p++ = col; } else { - char *p = (char *)((unsigned short*)pp + x); + char *p = (char *)(pp + x);
while( ww-- ) *p++ = col;