svn commit: r258782 - user/ed/newcons/sys/dev/vt/hw/ofwfb

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sat Nov 30 22:49:27 UTC 2013


Author: nwhitehorn
Date: Sat Nov 30 22:49:26 2013
New Revision: 258782
URL: http://svnweb.freebsd.org/changeset/base/258782

Log:
  Fix build.

Modified:
  user/ed/newcons/sys/dev/vt/hw/ofwfb/ofwfb.c

Modified: user/ed/newcons/sys/dev/vt/hw/ofwfb/ofwfb.c
==============================================================================
--- user/ed/newcons/sys/dev/vt/hw/ofwfb/ofwfb.c	Sat Nov 30 22:46:43 2013	(r258781)
+++ user/ed/newcons/sys/dev/vt/hw/ofwfb/ofwfb.c	Sat Nov 30 22:49:26 2013	(r258782)
@@ -110,10 +110,11 @@ ofwfb_bitbltchr(struct vt_device *vd, co
 
 	fgc = sc->sc_colormap[fg];
 	bgc = sc->sc_colormap[bg];
+	b = m = 0;
 
 	/* Don't try to put off screen pixels */
-	if (((left + width) > info->fb_width) || ((top + height) >
-	    info->fb_height))
+	if (((left + width) > vd->vd_width) || ((top + height) >
+	    vd->vd_height))
 		return;
 
 	line = (sc->sc_stride * top) + left * sc->sc_depth/8;


More information about the svn-src-user mailing list