X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fredraw.c;h=9cb0de95a809a3e66845e559648668dacf8f51f7;hp=96c6b0f308b67a78d0438085fee300e92f0c2e32;hb=1385381954c39dc95558adc87fad457046959cc1;hpb=c120fddebe9e9c1e2b29dbd744a6b1d03652bf8b;ds=sidebyside diff --git a/test/redraw.c b/test/redraw.c index 96c6b0f3..9cb0de95 100644 --- a/test/redraw.c +++ b/test/redraw.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2006-2010,2011 Free Software Foundation, Inc. * + * Copyright (c) 2006-2011,2012 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: redraw.c,v 1.7 2011/05/21 18:38:35 tom Exp $ + * $Id: redraw.c,v 1.8 2012/12/08 20:46:02 tom Exp $ * * Demonstrate the redrawwin() and wredrawln() functions. * Thomas Dickey - 2006/11/4 @@ -71,7 +71,7 @@ test_redraw(WINDOW *win) keypad(win, TRUE); getmaxyx(win, max_y, max_x); getbegyx(win, beg_y, beg_x); - while (!done && win != 0) { + while (!done) { ch = wgetch(win); getyx(win, y, x); switch (ch) {