summaryrefslogtreecommitdiff
path: root/sys/dev/syscons
diff options
context:
space:
mode:
authorKazutaka YOKOTA <yokota@FreeBSD.org>1999-08-28 02:45:11 +0000
committerKazutaka YOKOTA <yokota@FreeBSD.org>1999-08-28 02:45:11 +0000
commit977560c398b2e05fca0430ba7cdf0c42da2eec50 (patch)
tree2c0d580d548b2b66dc00dfa5830d49d4b5d1d2b5 /sys/dev/syscons
parent2ff214e3ae2b5eef70024ab77c7a69b3bded13c5 (diff)
Notes
Diffstat (limited to 'sys/dev/syscons')
-rw-r--r--sys/dev/syscons/scvidctl.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/syscons/scvidctl.c b/sys/dev/syscons/scvidctl.c
index 732f386c05bc..096eca587575 100644
--- a/sys/dev/syscons/scvidctl.c
+++ b/sys/dev/syscons/scvidctl.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: scvidctl.c,v 1.7 1999/01/19 11:31:16 yokota Exp $
+ * $Id: scvidctl.c,v 1.7.2.1 1999/02/07 03:03:26 yokota Exp $
*/
#include "sc.h"
@@ -186,8 +186,10 @@ sc_set_graphics_mode(scr_stat *scp, struct tty *tp, int mode)
scp->yoff = 0;
scp->xpixel = info.vi_width;
scp->ypixel = info.vi_height;
- scp->xsize = info.vi_width/8;
- scp->ysize = info.vi_height/info.vi_cheight;
+ /*
+ * Don't change xsize and ysize; preserve the previous vty
+ * and history buffers.
+ */
scp->font_size = FONT_NONE;
/* move the mouse cursor at the center of the screen */
sc_move_mouse(scp, scp->xpixel / 2, scp->ypixel / 2);