svn commit: r271180 - head/sys/dev/vt/hw/vga
Jean-Sebastien Pedron
dumbbell at FreeBSD.org
Fri Sep 5 18:11:40 UTC 2014
Author: dumbbell
Date: Fri Sep 5 18:11:39 2014
New Revision: 271180
URL: http://svnweb.freebsd.org/changeset/base/271180
Log:
vt_vga: vd_setpixel_t and vd_drawrect_t are noop in text mode
MFC after: 3 days
Modified:
head/sys/dev/vt/hw/vga/vt_vga.c
Modified: head/sys/dev/vt/hw/vga/vt_vga.c
==============================================================================
--- head/sys/dev/vt/hw/vga/vt_vga.c Fri Sep 5 18:11:36 2014 (r271179)
+++ head/sys/dev/vt/hw/vga/vt_vga.c Fri Sep 5 18:11:39 2014 (r271180)
@@ -352,6 +352,9 @@ static void
vga_setpixel(struct vt_device *vd, int x, int y, term_color_t color)
{
+ if (vd->vd_flags & VDF_TEXTMODE)
+ return;
+
vga_bitblt_put(vd, (y * VT_VGA_WIDTH / 8) + (x / 8), color,
0x80 >> (x % 8));
}
@@ -362,6 +365,9 @@ vga_drawrect(struct vt_device *vd, int x
{
int x, y;
+ if (vd->vd_flags & VDF_TEXTMODE)
+ return;
+
for (y = y1; y <= y2; y++) {
if (fill || (y == y1) || (y == y2)) {
for (x = x1; x <= x2; x++)
More information about the svn-src-all
mailing list