Date: Sat, 21 Jan 2012 18:54:19 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r230434 - user/ed/newcons/sys/dev/vt/hw/ofwfb Message-ID: <201201211854.q0LIsJwk005267@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201211854.q0LIsJwk005267>