summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2005-06-10 05:20:33 +0000
committerXin LI <delphij@FreeBSD.org>2005-06-10 05:20:33 +0000
commit4c3763445ddc83d75b7e77c33aa5b1871fe550b7 (patch)
tree1aeb26698405b64429ab6aaadd78edea7a5e82ac
parentda17aba102cd3b8430debe57774eea37fa95fbb2 (diff)
Notes
-rw-r--r--sys/dev/syscons/scvesactl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/syscons/scvesactl.c b/sys/dev/syscons/scvesactl.c
index b54f61bd17fc..a39bf483d7e0 100644
--- a/sys/dev/syscons/scvesactl.c
+++ b/sys/dev/syscons/scvesactl.c
@@ -115,7 +115,9 @@ vesa_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *
mode = (cmd & 0xff) + M_VESA_BASE;
- if ((mode > M_VESA_FULL_1280) &&
+ /* Only set graphics mode in non-pcvt case */
+ if (((cmd & IOC_DIRMASK) == IOC_VOID) &&
+ (mode > M_VESA_FULL_1280) &&
(mode < M_VESA_MODE_MAX))
return sc_set_graphics_mode(scp, tp, mode);
}