mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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:
parent
120bdcd90b
commit
b96ab4102e
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue