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 frob the interals of a WINDOW*, ...



details:   https://anonhg.NetBSD.org/src/rev/dd549d381a37
branches:  trunk
changeset: 472017:dd549d381a37
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sun Apr 18 04:09:27 1999 +0000

description:
Don't frob the interals of a WINDOW*, use the getmaxx() and getmaxy()
macros.

diffstat:

 distrib/utils/sysinst/util.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 7f89b0d7c804 -r dd549d381a37 distrib/utils/sysinst/util.c
--- a/distrib/utils/sysinst/util.c      Sun Apr 18 03:30:12 1999 +0000
+++ b/distrib/utils/sysinst/util.c      Sun Apr 18 04:09:27 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: util.c,v 1.39 1999/04/15 12:25:54 bouyer Exp $ */
+/*     $NetBSD: util.c,v 1.40 1999/04/18 04:09:27 simonb Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -865,7 +865,7 @@
        WINDOW *yesnowin;
        int c, found;
 
-       yesnowin = subwin(stdscr, 5, 20, stdscr->maxy/2 - 2, stdscr->maxx/2 - 10);
+       yesnowin = subwin(stdscr, 5, 20, getmaxy(stdscr)/2 - 2, getmaxx(stdscr)/2 - 10);
 
        box(yesnowin, '*', '*');
        wmove(yesnowin, 2,2);



Home | Main Index | Thread Index | Old Index