]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/movewindow.c
ncurses 5.9 - patch 20120721
[ncurses.git] / test / movewindow.c
index 8fc0a716882b9e2b4a6ae2fcd7e3a70e1cff0015..5244e8aeb5f4f8bd08dfbae1a03dcdf581518882 100644 (file)
@@ -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';
        }