Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Set a value for MISCOUT register correctly in vga...



details:   https://anonhg.NetBSD.org/src/rev/e924ff05a4cf
branches:  trunk
changeset: 542379:e924ff05a4cf
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Mon Jan 27 15:27:44 2003 +0000

description:
Set a value for MISCOUT register correctly in vga_setup_regs().

diffstat:

 sys/dev/ic/vga_raster.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r b8415b420b57 -r e924ff05a4cf sys/dev/ic/vga_raster.c
--- a/sys/dev/ic/vga_raster.c   Mon Jan 27 15:22:47 2003 +0000
+++ b/sys/dev/ic/vga_raster.c   Mon Jan 27 15:27:44 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vga_raster.c,v 1.8 2003/01/27 15:22:47 tsutsui Exp $   */
+/*     $NetBSD: vga_raster.c,v 1.9 2003/01/27 15:27:44 tsutsui Exp $   */
 
 /*
  * Copyright (c) 2001, 2002 Bang Jun-Young
@@ -830,9 +830,9 @@
                        mode->vdisplay *= 2;
                if (mode->vdisplay < 400)
                        regs->miscout = 0xa3;
-               if (mode->vdisplay < 480)
+               else if (mode->vdisplay < 480)
                        regs->miscout = 0x63;
-               if (mode->vdisplay < 768)
+               else if (mode->vdisplay < 768)
                        regs->miscout = 0xe3;
                else
                        regs->miscout = 0x23;



Home | Main Index | Thread Index | Old Index