Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/hpc For HPCFB_CLASS_RGBCOLOR class propagate r/g/b w...
details: https://anonhg.NetBSD.org/src/rev/be2f16467aed
branches: trunk
changeset: 583996:be2f16467aed
user: uwe <uwe%NetBSD.org@localhost>
date: Sun Sep 04 00:54:42 2005 +0000
description:
For HPCFB_CLASS_RGBCOLOR class propagate r/g/b widths and positions
from hf_rgb to rasops_info.
diffstat:
sys/dev/hpc/hpcfb.c | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diffs (41 lines):
diff -r 1503f563e107 -r be2f16467aed sys/dev/hpc/hpcfb.c
--- a/sys/dev/hpc/hpcfb.c Sat Sep 03 22:55:55 2005 +0000
+++ b/sys/dev/hpc/hpcfb.c Sun Sep 04 00:54:42 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hpcfb.c,v 1.32 2005/05/22 15:54:46 christos Exp $ */
+/* $NetBSD: hpcfb.c,v 1.33 2005/09/04 00:54:42 uwe Exp $ */
/*-
* Copyright (c) 1999
@@ -43,13 +43,13 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.32 2005/05/22 15:54:46 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.33 2005/09/04 00:54:42 uwe Exp $");
#define FBDEBUG
static const char _copyright[] __attribute__ ((unused)) =
"Copyright (c) 1999 Shin Takemura. All rights reserved.";
static const char _rcsid[] __attribute__ ((unused)) =
- "$NetBSD: hpcfb.c,v 1.32 2005/05/22 15:54:46 christos Exp $";
+ "$NetBSD: hpcfb.c,v 1.33 2005/09/04 00:54:42 uwe Exp $";
#include <sys/param.h>
#include <sys/systm.h>
@@ -469,6 +469,15 @@
break;
}
+ if (fbconf->hf_class == HPCFB_CLASS_RGBCOLOR) {
+ ri->ri_rnum = fbconf->hf_u.hf_rgb.hf_red_width;
+ ri->ri_rpos = fbconf->hf_u.hf_rgb.hf_red_shift;
+ ri->ri_gnum = fbconf->hf_u.hf_rgb.hf_green_width;
+ ri->ri_gpos = fbconf->hf_u.hf_rgb.hf_green_shift;
+ ri->ri_bnum = fbconf->hf_u.hf_rgb.hf_blue_width;
+ ri->ri_bpos = fbconf->hf_u.hf_rgb.hf_blue_shift;
+ }
+
if (rasops_init(ri, HPCFB_MAX_ROW, HPCFB_MAX_COLUMN)) {
panic("%s(%d): rasops_init() failed!", __FILE__, __LINE__);
}
Home |
Main Index |
Thread Index |
Old Index