Use the correct ioctl command to set a VESA mode.

PR: 24423
MFC after: 10 days
This commit is contained in:
Kazutaka YOKOTA 2001-07-22 13:30:32 +00:00
parent afe1ef249f
commit e64c88b2dc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80148

View File

@ -402,7 +402,9 @@ video_mode(int argc, char **argv, int *index)
if (ioctl(0, KDRASTER, size)) {
ioerr = errno;
if (cur_mode >= M_VESA_BASE)
ioctl(0, _IO('V', cur_mode), NULL);
ioctl(0,
_IO('V', cur_mode - M_VESA_BASE),
NULL);
else
ioctl(0, _IO('S', cur_mode), NULL);
warnc(ioerr, "cannot activate raster display");