Add small fix from Björn Johannessonwhich makes framebuffer woth with X11.

This commit is contained in:
jklos 2014-12-18 22:46:53 +00:00
parent cd51d52b6d
commit 5ebf3ef3c3

View File

@ -1,4 +1,4 @@
/* $NetBSD: lcg.c,v 1.1 2014/12/16 11:34:17 jklos Exp $ */
/* $NetBSD: lcg.c,v 1.2 2014/12/18 22:46:53 jklos Exp $ */
/*
* LCG accelerated framebuffer driver
* Copyright (c) 2003, 2004 Blaz Antonic
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: lcg.c,v 1.1 2014/12/16 11:34:17 jklos Exp $");
__KERNEL_RCSID(0, "$NetBSD: lcg.c,v 1.2 2014/12/18 22:46:53 jklos Exp $");
#define LCG_NO_ACCEL
@ -710,6 +710,10 @@ lcg_ioctl(void *v, void *vs, u_long cmd, void *data, int flag, struct lwp *l)
fb->cmsize = 1 << lcg_depth;
break;
case WSDISPLAYIO_LINEBYTES:
*(u_int *)data = lcg_xsize;
break;
case WSDISPLAYIO_GETCMAP:
return lcg_get_cmap((struct wsdisplay_cmap *)data);