Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/sysinst Don't access curses internals, use get...



details:   https://anonhg.NetBSD.org/src/rev/492ec2b11209
branches:  trunk
changeset: 484921:492ec2b11209
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Apr 14 21:46:11 2000 +0000

description:
Don't access curses internals, use getmaxy() instead.

diffstat:

 distrib/utils/sysinst/run.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 2c6a2ed8e291 -r 492ec2b11209 distrib/utils/sysinst/run.c
--- a/distrib/utils/sysinst/run.c       Fri Apr 14 20:33:48 2000 +0000
+++ b/distrib/utils/sysinst/run.c       Fri Apr 14 21:46:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: run.c,v 1.29 2000/01/24 10:40:56 he Exp $      */
+/*     $NetBSD: run.c,v 1.30 2000/04/14 21:46:11 thorpej Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -375,9 +375,9 @@
                                                switch (ibuf[j]) {
                                                case '\n':
                                                        getyx(actionwin, ycor, xcor);
-                                                       if (ycor + 1 >= actionwin->maxy) {
+                                                       if (ycor + 1 >= getmaxy(actionwin)) {
                                                                scroll(actionwin);
-                                                               wmove(actionwin, actionwin->maxy - 1, 0);
+                                                               wmove(actionwin, getmaxy(actionwin) - 1, 0);
                                                        } else
                                                                wmove(actionwin, ycor + 1, 0);
                                                        break;



Home | Main Index | Thread Index | Old Index