Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/rasops reset ri->ri_hwbits too if RI_CFGDONE is set.
details: https://anonhg.NetBSD.org/src/rev/626e5ccf29f8
branches: trunk
changeset: 351715:626e5ccf29f8
user: nonaka <nonaka%NetBSD.org@localhost>
date: Thu Feb 23 12:16:30 2017 +0000
description:
reset ri->ri_hwbits too if RI_CFGDONE is set.
prevent ri->ri_hwbits from moving to center every time rasops_reconfig() is
called when RI_CENTER is set.
diffstat:
sys/dev/rasops/rasops.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r f93061b3d513 -r 626e5ccf29f8 sys/dev/rasops/rasops.c
--- a/sys/dev/rasops/rasops.c Thu Feb 23 12:14:53 2017 +0000
+++ b/sys/dev/rasops/rasops.c Thu Feb 23 12:16:30 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rasops.c,v 1.73 2015/04/18 11:23:58 mlelstv Exp $ */
+/* $NetBSD: rasops.c,v 1.74 2017/02/23 12:16:30 nonaka Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.73 2015/04/18 11:23:58 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.74 2017/02/23 12:16:30 nonaka Exp $");
#include "opt_rasops.h"
#include "rasops_glue.h"
@@ -325,8 +325,10 @@
/* Need this to frob the setup below */
bpp = (ri->ri_depth == 15 ? 16 : ri->ri_depth);
- if ((ri->ri_flg & RI_CFGDONE) != 0)
+ if ((ri->ri_flg & RI_CFGDONE) != 0) {
ri->ri_bits = ri->ri_origbits;
+ ri->ri_hwbits = ri->ri_hworigbits;
+ }
/* Don't care if the caller wants a hideously small console */
if (wantrows < 10)
Home |
Main Index |
Thread Index |
Old Index