summaryrefslogtreecommitdiff
path: root/sys/dev/wscons/wsdisplay.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-08-29 20:20:27 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-08-29 20:20:27 +0000
commitd637448fd22fc504f151fe93a6fa57817b4ce8cc (patch)
tree12c1482d3d68d48bf40c9ead0d97e6a70205dd58 /sys/dev/wscons/wsdisplay.c
parent05536921e8cc58554ab25ff86d52c2addd3677fa (diff)
make set/get screen work now
Diffstat (limited to 'sys/dev/wscons/wsdisplay.c')
-rw-r--r--sys/dev/wscons/wsdisplay.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/wscons/wsdisplay.c b/sys/dev/wscons/wsdisplay.c
index 849c1996ee8..2a7a6110a10 100644
--- a/sys/dev/wscons/wsdisplay.c
+++ b/sys/dev/wscons/wsdisplay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsdisplay.c,v 1.31 2001/07/10 11:07:25 espie Exp $ */
+/* $OpenBSD: wsdisplay.c,v 1.32 2001/08/29 20:20:26 mickey Exp $ */
/* $NetBSD: wsdisplay.c,v 1.37.4.1 2000/06/30 16:27:53 simonb Exp $ */
/*
@@ -1133,6 +1133,12 @@ wsdisplay_internal_ioctl(sc, scr, cmd, data, flag, p)
}
return (error);
#undef d
+ case WSDISPLAYIO_GETSCREEN:
+#define d ((struct wsdisplay_addscreendata *)data)
+ return (wsdisplay_getscreen(sc, d));
+#undef d
+ case WSDISPLAYIO_SETSCREEN:
+ return (wsdisplay_switch((void *)sc, *(int *)data, 1));
}
/* check ioctls for display */