From: Kevin O'Connor Date: Fri, 3 Feb 2012 01:56:38 +0000 (-0500) Subject: vgabios: Fix screen attrs on cga scroll. X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=seabios.git;a=commitdiff_plain;h=b88869564b2637d05dda14f6cededceebfbb0f66 vgabios: Fix screen attrs on cga scroll. Signed-off-by: Kevin O'Connor --- diff --git a/vgasrc/vgafb.c b/vgasrc/vgafb.c index d988c88..a75bc81 100644 --- a/vgasrc/vgafb.c +++ b/vgasrc/vgafb.c @@ -93,6 +93,10 @@ scroll_cga(struct vgamode_s *vmode_g, int nblines, int attr } if (attr < 0) attr = 0; + if (cwidth == 1) + attr = (attr&1) | ((attr&1)<<1); + attr &= 3; + attr |= (attr<<2) | (attr<<4) | (attr<<6); int cols = lr.x - ul.x + 1; int rows = lr.y - ul.y + 1; if (nblines < rows) {