svn commit: r257979 - user/ed/newcons/sys/dev/vt
Aleksandr Rybalko
ray at FreeBSD.org
Mon Nov 11 12:24:18 UTC 2013
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);
More information about the svn-src-user
mailing list