diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/screen.c b/mbbsd/screen.c index 1f015acc..5eee18e4 100644 --- a/mbbsd/screen.c +++ b/mbbsd/screen.c @@ -368,8 +368,8 @@ clrtoeol(void) void newwin (int nlines, int ncols, int y, int x) { - int i=0, y, x; - getyx(&y, &x); + int i=0, oy, ox; + getyx(&oy, &ox); while (nlines-- > 0) { @@ -377,7 +377,7 @@ void newwin (int nlines, int ncols, int y, int x) for (i = 0; i < ncols; i++) outc(' '); } - move(y, x); + move(oy, ox); } /** |