Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Aug 2014 11:27:48 +0000 (UTC)
From:      Jean-Sebastien Pedron <dumbbell@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r270708 - head/sys/dev/vt
Message-ID:  <201408271127.s7RBRmVs013597@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dumbbell
Date: Wed Aug 27 11:27:48 2014
New Revision: 270708
URL: http://svnweb.freebsd.org/changeset/base/270708

Log:
  vt(4): Recompute the drawable area when the resolution changes
  
  This was only done when the font changed.
  
  MFC after:	1 week

Modified:
  head/sys/dev/vt/vt_core.c

Modified: head/sys/dev/vt/vt_core.c
==============================================================================
--- head/sys/dev/vt/vt_core.c	Wed Aug 27 11:08:09 2014	(r270707)
+++ head/sys/dev/vt/vt_core.c	Wed Aug 27 11:27:48 2014	(r270708)
@@ -2269,12 +2269,11 @@ vt_resize(struct vt_device *vd)
 		vw = vd->vd_windows[i];
 		VT_LOCK(vd);
 		/* Assign default font to window, if not textmode. */
-		if (!(vd->vd_flags & VDF_TEXTMODE) && vw->vw_font == NULL) {
+		if (!(vd->vd_flags & VDF_TEXTMODE) && vw->vw_font == NULL)
 			vw->vw_font = vtfont_ref(&vt_font_default);
-			vt_compute_drawable_area(vw);
-		}
 		VT_UNLOCK(vd);
 		/* Resize terminal windows */
+		vt_compute_drawable_area(vw);
 		while (vt_change_font(vw, vw->vw_font) == EBUSY) {
 			DPRINTF(100, "%s: vt_change_font() is busy, "
 			    "window %d\n", __func__, i);



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