Date: Mon, 11 Nov 2013 12:24:17 +0000 (UTC) From: Aleksandr Rybalko <ray@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r257979 - user/ed/newcons/sys/dev/vt Message-ID: <201311111224.rABCOHnQ039466@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ray Date: Mon Nov 11 12:24:17 2013 New Revision: 257979 URL: http://svnweb.freebsd.org/changeset/base/257979 Log: Use saved offset to font aligned area. Sponsored by: The FreeBSD Foundation Modified: user/ed/newcons/sys/dev/vt/vt_core.c Modified: user/ed/newcons/sys/dev/vt/vt_core.c ============================================================================== --- user/ed/newcons/sys/dev/vt/vt_core.c Mon Nov 11 12:22:44 2013 (r257978) +++ user/ed/newcons/sys/dev/vt/vt_core.c Mon Nov 11 12:24:17 2013 (r257979) @@ -636,10 +636,8 @@ vt_bitblt_char(struct vt_device *vd, str * Fonts may not always be able to fill the entire * screen. */ - top = row * vf->vf_height + - (vd->vd_height % vf->vf_height) / 2; - left = col * vf->vf_width + - (vd->vd_width % vf->vf_width) / 2; + top = row * vf->vf_height + vd->vd_offset.tp_row; + left = col * vf->vf_width + vd->vd_offset.tp_col; vd->vd_driver->vd_bitbltchr(vd, src, top, left, vf->vf_width, vf->vf_height, fg, bg);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311111224.rABCOHnQ039466>