From owner-svn-src-user@FreeBSD.ORG Mon Nov 11 12:24:18 2013 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0364622B; Mon, 11 Nov 2013 12:24:18 +0000 (UTC) (envelope-from ray@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E4DD72328; Mon, 11 Nov 2013 12:24:17 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rABCOH7I039467; Mon, 11 Nov 2013 12:24:17 GMT (envelope-from ray@svn.freebsd.org) Received: (from ray@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rABCOHnQ039466; Mon, 11 Nov 2013 12:24:17 GMT (envelope-from ray@svn.freebsd.org) Message-Id: <201311111224.rABCOHnQ039466@svn.freebsd.org> From: Aleksandr Rybalko Date: Mon, 11 Nov 2013 12:24:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r257979 - user/ed/newcons/sys/dev/vt X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Nov 2013 12:24:18 -0000 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);