svn commit: r265927 - head/sys/dev/vt
Aleksandr Rybalko
ray at FreeBSD.org
Mon May 12 19:29:39 UTC 2014
Author: ray
Date: Mon May 12 19:29:38 2014
New Revision: 265927
URL: http://svnweb.freebsd.org/changeset/base/265927
Log:
Update terminal sizes in any case when new vt(4) driver arrive.
(Plus remove one unused newline)
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/dev/vt/vt_core.c
Modified: head/sys/dev/vt/vt_core.c
==============================================================================
--- head/sys/dev/vt/vt_core.c Mon May 12 19:11:39 2014 (r265926)
+++ head/sys/dev/vt/vt_core.c Mon May 12 19:29:38 2014 (r265927)
@@ -1981,8 +1981,11 @@ vt_upgrade(struct vt_device *vd)
unsigned int i;
/* Device didn't pass vd_init() or already upgraded. */
- if (vd->vd_flags & (VDF_ASYNC|VDF_DEAD))
+ if (vd->vd_flags & (VDF_ASYNC|VDF_DEAD)) {
+ /* Refill settings with new sizes anyway. */
+ vt_resize(vd);
return;
+ }
vd->vd_flags |= VDF_ASYNC;
for (i = 0; i < VT_MAXWINDOWS; i++) {
@@ -2019,7 +2022,6 @@ vt_upgrade(struct vt_device *vd)
/* Refill settings with new sizes. */
vt_resize(vd);
-
}
static void
More information about the svn-src-all
mailing list