Fix restoring the geometry when recovering from an error. Just restore the

previous geometry, and don't do extra work to calculate the default geometry
so as to reset to that.
This commit is contained in:
Bruce Evans 2019-04-08 04:07:37 +00:00
parent 120bdcd90b
commit b96ab4102e

View File

@ -171,9 +171,8 @@ revert(void)
else
ioctl(0, _IO('S', cur_info.video_mode_number), NULL);
if (cur_info.video_mode_info.vi_flags & V_INFO_GRAPHICS) {
size[0] = cur_info.video_mode_info.vi_width / 8;
size[1] = cur_info.video_mode_info.vi_height /
cur_info.console_info.font_size;
size[0] = cur_info.console_info.mv_csz;
size[1] = cur_info.console_info.mv_rsz;
size[2] = cur_info.console_info.font_size;
ioctl(0, KDRASTER, size);
}