aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-11-17 23:54:24 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-11-17 23:54:24 +0000
commit45cb79a377445bdd060fdd3f5ebab01e1a927162 (patch)
tree50bfae41997f05fd623cda21df30128f39293057 /gnu
parent1f6f0b64cc4185a373bcbb1b5978ab2641c53f88 (diff)
downloadsrc-45cb79a377445bdd060fdd3f5ebab01e1a927162.tar.gz
src-45cb79a377445bdd060fdd3f5ebab01e1a927162.zip
Use newscr instead of curscr in shadows code
Notes
Notes: svn path=/head/; revision=4581
Diffstat (limited to 'gnu')
-rw-r--r--gnu/lib/libdialog/kernel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/lib/libdialog/kernel.c b/gnu/lib/libdialog/kernel.c
index a2e640437032..309a0ba15c44 100644
--- a/gnu/lib/libdialog/kernel.c
+++ b/gnu/lib/libdialog/kernel.c
@@ -388,7 +388,7 @@ void draw_shadow(WINDOW *win, int y, int x, int height, int width)
wattrset(win, shadow_attr);
wmove(win, y + height, x + 2);
for (i = 0; i < width; i++)
- waddch(win, mvwinch(curscr, sy+y+height, sx+x+2+i) & A_CHARTEXT);
+ waddch(win, mvwinch(newscr, sy+y+height, sx+x+2+i) & A_CHARTEXT);
for (i = y + 1; i < y + height + 1; i++) {
/* small touch */
wattrset(win, A_INVIS);
@@ -397,8 +397,8 @@ void draw_shadow(WINDOW *win, int y, int x, int height, int width)
/* end touch */
wattrset(win, shadow_attr);
wmove(win, i, x + width);
- waddch(win, mvwinch(curscr, sy+i, sx+x+width) & A_CHARTEXT);
- waddch(win, mvwinch(curscr, sy+i, sx+x+width+1) & A_CHARTEXT);
+ waddch(win, mvwinch(newscr, sy+i, sx+x+width) & A_CHARTEXT);
+ waddch(win, mvwinch(newscr, sy+i, sx+x+width+1) & A_CHARTEXT);
}
wnoutrefresh(win);
}