Signed-off-by: Kevin O'Connor kevin@koconnor.net --- vgasrc/vgafb.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
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) {