VFB01 framebuffer is 2048 bits wide (but only displays the first 1024 bits

of each scan line).  Fix the fi_linebytes value to get the right size.
Fixes the 'compressed' display problem with the 2100/3100 monochrome display.
This commit is contained in:
mhitch 2000-11-02 23:37:08 +00:00
parent 26f192b24a
commit 84f1b64ed1

View File

@ -1,4 +1,4 @@
/* $NetBSD: pm.c,v 1.33 2000/02/03 04:09:15 nisimura Exp $ */
/* $NetBSD: pm.c,v 1.34 2000/11/02 23:37:08 mhitch Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: pm.c,v 1.33 2000/02/03 04:09:15 nisimura Exp $");
__KERNEL_RCSID(0, "$NetBSD: pm.c,v 1.34 2000/11/02 23:37:08 mhitch Exp $");
#include <sys/param.h>
@ -207,7 +207,7 @@ pminit(fi, base, unit)
fi->fi_type.fb_cmsize = 0;
fi->fi_type.fb_size = 0x40000;
fi->fi_pixelsize = (1024 / 8) * 864;
fi->fi_linebytes = 1024 / 8;
fi->fi_linebytes = 2048 / 8;
}
else {
fi->fi_type.fb_boardtype = PMAX_FBTYPE_PM_COLOR;