svn commit: r210378 - stable/8/sys/dev/syscons
Jung-uk Kim
jkim at FreeBSD.org
Thu Jul 22 17:02:11 UTC 2010
Author: jkim
Date: Thu Jul 22 17:02:11 2010
New Revision: 210378
URL: http://svn.freebsd.org/changeset/base/210378
Log:
MFC: r210248
Fix two long-standing line wrapping bugs in VGA renderer for pixel mode.
Font size may be smaller than 16 and logical scan line may be larger than
the displayed scan line.
Modified:
stable/8/sys/dev/syscons/scvgarndr.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
Modified: stable/8/sys/dev/syscons/scvgarndr.c
==============================================================================
--- stable/8/sys/dev/syscons/scvgarndr.c Thu Jul 22 16:41:09 2010 (r210377)
+++ stable/8/sys/dev/syscons/scvgarndr.c Thu Jul 22 17:02:11 2010 (r210378)
@@ -766,8 +766,9 @@ vga_vgadraw_direct(scr_stat *scp, int fr
d += 8 * pixel_size;
if ((i % scp->xsize) == scp->xsize - 1)
- d += scp->xoff * 16 * pixel_size +
- (scp->font_size - 1) * line_width;
+ d += scp->xoff * scp->font_size * pixel_size +
+ scp->font_size * line_width -
+ scp->xpixel * pixel_size;
}
}
More information about the svn-src-stable-8
mailing list