aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazutaka YOKOTA <yokota@FreeBSD.org>2001-07-22 13:30:32 +0000
committerKazutaka YOKOTA <yokota@FreeBSD.org>2001-07-22 13:30:32 +0000
commite64c88b2dcf85b8b13dab00e2d6aebc0cdc2b259 (patch)
treed5d4326f27888d20261bab4de59280b91084a8f3
parentafe1ef249f67c207515285f01df1b3467e822917 (diff)
Notes
-rw-r--r--usr.sbin/vidcontrol/vidcontrol.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/vidcontrol/vidcontrol.c b/usr.sbin/vidcontrol/vidcontrol.c
index 87e1cea77cfe9..00451c8fb7967 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");