X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fmovewindow.c;h=5244e8aeb5f4f8bd08dfbae1a03dcdf581518882;hp=8fc0a716882b9e2b4a6ae2fcd7e3a70e1cff0015;hb=173dd870810c8b85baa31f9a272d15f96a8f9ff4;hpb=f367fa254ce3fe29710c86971f04e03111c2bd2c diff --git a/test/movewindow.c b/test/movewindow.c index 8fc0a716..5244e8ae 100644 --- a/test/movewindow.c +++ b/test/movewindow.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: movewindow.c,v 1.33 2012/01/15 00:30:35 tom Exp $ + * $Id: movewindow.c,v 1.35 2012/06/09 20:30:32 tom Exp $ * * Demonstrate move functions for windows and derived windows from the curses * library. @@ -492,9 +492,6 @@ move_derwin(WINDOW *win) max_line, max_col, TRUE, &more)) != 0) { - int y0, x0; - - getbegyx(parent, y0, x0); if (mvderwin(win, tmp->y, tmp->x) != ERR) { refresh_all(win); doupdate(); @@ -545,7 +542,7 @@ fill_with_pattern(WINDOW *win) getmaxyx(win, y1, x1); for (y = 0; y < y1; ++y) { for (x = 0; x < x1; ++x) { - MvWAddCh(win, y, x, ch); + MvWAddCh(win, y, x, (chtype) ch); if (++ch > 'z') ch = 'a'; }