svn commit: r230434 - user/ed/newcons/sys/dev/vt/hw/ofwfb
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Sat Jan 21 18:54:20 UTC 2012
Author: nwhitehorn
Date: Sat Jan 21 18:54:19 2012
New Revision: 230434
URL: http://svn.freebsd.org/changeset/base/230434
Log:
Make ofwfb static framebuffer much smaller by actually reading how you
are supposed to do this kind of thing.
Modified:
user/ed/newcons/sys/dev/vt/hw/ofwfb/ofwfb.c
Modified: user/ed/newcons/sys/dev/vt/hw/ofwfb/ofwfb.c
==============================================================================
--- user/ed/newcons/sys/dev/vt/hw/ofwfb/ofwfb.c Sat Jan 21 18:38:57 2012 (r230433)
+++ user/ed/newcons/sys/dev/vt/hw/ofwfb/ofwfb.c Sat Jan 21 18:54:19 2012 (r230434)
@@ -61,7 +61,9 @@ static const struct vt_driver vt_ofwfb_d
};
static struct ofwfb_softc ofwfb_conssoftc;
-VT_CONSDEV_DECLARE(vt_ofwfb_driver, 1600, 1200, &ofwfb_conssoftc);
+VT_CONSDEV_DECLARE(vt_ofwfb_driver, PIXEL_WIDTH(1600), PIXEL_HEIGHT(1200),
+ &ofwfb_conssoftc);
+/* XXX: hardcoded max size */
static const uint32_t colormap[] = {
0x00000000, /* Black */
More information about the svn-src-user
mailing list