diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-02-28 19:12:41 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-02-28 19:12:41 +0000 |
commit | 61700cc20eacd0512092cc90f72f065f0a7f2de5 (patch) | |
tree | 5353e1e9af0b3824d7a68f18b7a476fd22488f7c /sys/arch/powerpc/pci | |
parent | b54150eb2c6ddc09bda66e185997df6345673a8b (diff) |
Add ability to get display width in bytes for display memory, this
may be the same as visual width or larger.
This is seen on iMacDV systems running at 640x480 or 800x600 with a linebytes
of 1024.
Diffstat (limited to 'sys/arch/powerpc/pci')
-rw-r--r-- | sys/arch/powerpc/pci/vgafb.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/powerpc/pci/vgafb.c b/sys/arch/powerpc/pci/vgafb.c index 7f84cd97e3f..580328c59bc 100644 --- a/sys/arch/powerpc/pci/vgafb.c +++ b/sys/arch/powerpc/pci/vgafb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vgafb.c,v 1.8 2001/02/01 23:51:07 drahn Exp $ */ +/* $OpenBSD: vgafb.c,v 1.9 2001/02/28 19:12:40 drahn Exp $ */ /* $NetBSD: vga.c,v 1.3 1996/12/02 22:24:54 cgd Exp $ */ /* @@ -369,6 +369,10 @@ vgafb_ioctl(v, cmd, data, flag, p) wdf->cmsize = 256; return 0; + case WSDISPLAYIO_LINEBYTES: + *(u_int *)data = cons_linebytes; + return 0; + case WSDISPLAYIO_GETCMAP: return vgafb_getcmap(vc, (struct wsdisplay_cmap *)data); |