diff options
author | yokota <yokota@FreeBSD.org> | 2001-07-22 13:30:32 +0000 |
---|---|---|
committer | yokota <yokota@FreeBSD.org> | 2001-07-22 13:30:32 +0000 |
commit | d57dc6ad00720393b8c34a6f0df1bbb7c10f9edc (patch) | |
tree | d5d4326f27888d20261bab4de59280b91084a8f3 /usr.sbin/vidcontrol | |
parent | cc2212999ed6108a836e20287c8217d6b8eac8dc (diff) | |
download | FreeBSD-src-d57dc6ad00720393b8c34a6f0df1bbb7c10f9edc.zip FreeBSD-src-d57dc6ad00720393b8c34a6f0df1bbb7c10f9edc.tar.gz |
Use the correct ioctl command to set a VESA mode.
PR: 24423
MFC after: 10 days
Diffstat (limited to 'usr.sbin/vidcontrol')
-rw-r--r-- | usr.sbin/vidcontrol/vidcontrol.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/vidcontrol/vidcontrol.c b/usr.sbin/vidcontrol/vidcontrol.c index 87e1cea..00451c8 100644 --- a/usr.sbin/vidcontrol/vidcontrol.c +++ b/usr.sbin/vidcontrol/vidcontrol.c @@ -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"); |