Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/dev Fill in fb_depth, fb_width, and fb_heig...



details:   https://anonhg.NetBSD.org/src/rev/747d40986ee0
branches:  trunk
changeset: 580878:747d40986ee0
user:      mhitch <mhitch%NetBSD.org@localhost>
date:      Fri May 13 06:33:32 2005 +0000

description:
Fill in fb_depth, fb_width, and fb_height in the fb_type info.  XFree86 works
better now.

diffstat:

 sys/arch/sparc64/dev/ffb.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r fb57d3e193b8 -r 747d40986ee0 sys/arch/sparc64/dev/ffb.c
--- a/sys/arch/sparc64/dev/ffb.c        Fri May 13 05:03:49 2005 +0000
+++ b/sys/arch/sparc64/dev/ffb.c        Fri May 13 06:33:32 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffb.c,v 1.11 2005/05/04 14:38:44 martin Exp $  */
+/*     $NetBSD: ffb.c,v 1.12 2005/05/13 06:33:32 mhitch Exp $  */
 /*     $OpenBSD: creator.c,v 1.20 2002/07/30 19:48:15 jason Exp $      */
 
 /*
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffb.c,v 1.11 2005/05/04 14:38:44 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffb.c,v 1.12 2005/05/13 06:33:32 mhitch Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -192,6 +192,9 @@
        sc->sc_fb.fb_type.fb_cmsize = 0;
        sc->sc_fb.fb_type.fb_size = maxrow * sc->sc_linebytes;
        sc->sc_fb.fb_type.fb_type = FBTYPE_CREATOR;
+       sc->sc_fb.fb_type.fb_width = sc->sc_width;
+       sc->sc_fb.fb_type.fb_depth = sc->sc_depth;
+       sc->sc_fb.fb_type.fb_height = sc->sc_height;
        sc->sc_fb.fb_device = &sc->sc_dv;
        fb_attach(&sc->sc_fb, sc->sc_console);
 



Home | Main Index | Thread Index | Old Index