Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 2013 22:49:27 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r258782 - user/ed/newcons/sys/dev/vt/hw/ofwfb
Message-ID:  <201311302249.rAUMnRk8047661@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311302249.rAUMnRk8047661>