Jean-Sébastien Pédron 313ef9368f vt(4): Change the terminal and buffer sizes, even without a font
This fixes a bug where scroll lock would not work for tty #0 when using
vt_vga's textmode. The reason was that this window is created with a
static 256x100 buffer, larger than the real size of 80x25.

Now, in vt_change_font() and vt_compute_drawable_area(), we still
perform operations even of the window has no font loaded (this is the
case in textmode here vw->vw_font == NULL). One of these operation
resizes the buffer accordingly.

In vt_compute_drawable_area(), we take the terminal size as is (ie.
80x25) for the drawable area.

The font argument to vt_set_border() is removed (it was never used) and
the code now uses the computed drawable area instead of re-doing its own
calculation.

Reported by:	Harald Schmalzbauer <h.schmalzbauer_omnilan.de>
Tested by:	Harald Schmalzbauer <h.schmalzbauer_omnilan.de>
MFC after:	3 days
2014-09-08 07:37:03 +00:00
..
2014-08-08 11:47:18 +00:00
2014-07-07 00:27:09 +00:00
2014-09-03 09:58:59 +00:00
2014-08-21 00:57:32 +00:00
2013-08-28 14:49:36 +00:00
2014-08-05 23:35:19 +00:00
2014-08-05 23:58:49 +00:00
2014-08-05 23:47:26 +00:00
2014-07-07 00:27:09 +00:00
2014-07-12 06:23:42 +00:00
2014-05-20 19:55:06 +00:00
2014-09-08 07:16:00 +00:00
2014-07-07 08:22:39 +00:00
2014-07-30 18:21:06 +00:00
2014-05-16 21:19:17 +00:00
2013-09-05 23:14:27 +00:00
2014-04-30 06:40:30 +00:00
2013-10-29 11:17:49 +00:00
2014-08-31 17:56:54 +00:00
2014-05-16 21:19:17 +00:00
2014-07-07 00:27:09 +00:00
2014-07-29 14:41:28 +00:00
2013-10-29 11:17:49 +00:00
2014-02-04 20:52:33 +00:00