Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci fix inverted screen blanking logic
details: https://anonhg.NetBSD.org/src/rev/26c2b029998f
branches: trunk
changeset: 346364:26c2b029998f
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Jul 10 21:40:45 2016 +0000
description:
fix inverted screen blanking logic
diffstat:
sys/dev/pci/lynxfb.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (33 lines):
diff -r cb7a83854d63 -r 26c2b029998f sys/dev/pci/lynxfb.c
--- a/sys/dev/pci/lynxfb.c Sun Jul 10 17:40:23 2016 +0000
+++ b/sys/dev/pci/lynxfb.c Sun Jul 10 21:40:45 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lynxfb.c,v 1.4 2012/03/14 13:41:07 nonaka Exp $ */
+/* $NetBSD: lynxfb.c,v 1.5 2016/07/10 21:40:45 jmcneill Exp $ */
/* $OpenBSD: smfb.c,v 1.13 2011/07/21 20:36:12 miod Exp $ */
/*
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lynxfb.c,v 1.4 2012/03/14 13:41:07 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lynxfb.c,v 1.5 2016/07/10 21:40:45 jmcneill Exp $");
#include "opt_wsemul.h"
@@ -824,11 +824,11 @@
}
static void
-lynxfb_blank(struct lynxfb *fb, int blank)
+lynxfb_blank(struct lynxfb *fb, int enable)
{
- fb->blank = blank;
- if (!blank) {
+ fb->blank = !enable;
+ if (enable) {
lynxfb_vgats_write(fb, 0x31,
lynxfb_vgats_read(fb, 0x31) | 0x01);
} else {
Home |
Main Index |
Thread Index |
Old Index