diff options
Diffstat (limited to 'sys/dev/sbus/mgx.c')
-rw-r--r-- | sys/dev/sbus/mgx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/sbus/mgx.c b/sys/dev/sbus/mgx.c index 7c336cbd94c..bbaab80ca80 100644 --- a/sys/dev/sbus/mgx.c +++ b/sys/dev/sbus/mgx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mgx.c,v 1.15 2022/03/13 13:34:54 mpi Exp $ */ +/* $OpenBSD: mgx.c,v 1.16 2022/07/15 17:57:27 kettenis Exp $ */ /* * Copyright (c) 2003, Miodrag Vallat. * All rights reserved. @@ -359,6 +359,8 @@ mgx_ioctl(void *dev, u_long cmd, caddr_t data, int flags, struct proc *p) wdf->height = sc->sc_sunfb.sf_height; wdf->width = sc->sc_sunfb.sf_width; wdf->depth = sc->sc_sunfb.sf_depth; + wdf->stride = sc->sc_sunfb.sf_linebytes; + wdf->offset = 0; wdf->cmsize = 256; break; case WSDISPLAYIO_LINEBYTES: |