diff options
author | reinelt <> | 2003-07-24 04:48:09 +0000 |
---|---|---|
committer | reinelt <> | 2003-07-24 04:48:09 +0000 |
commit | 80ad6d155c1b974590f0c96b6291b0baa70b09d5 (patch) | |
tree | b53a7102debdc89d8fe44e0c6b913019d78f60bc /Text.c | |
parent | a7a6b96ef3ef6a0abc6790addb8dc298ae7bb693 (diff) | |
download | lcd4linux-80ad6d155c1b974590f0c96b6291b0baa70b09d5.tar.gz |
[lcd4linux @ 2003-07-24 04:48:09 by reinelt]
'soft clear' needed for virtual rows
Diffstat (limited to 'Text.c')
-rw-r--r-- | Text.c | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: Text.c,v 1.8 2003/02/22 07:53:10 reinelt Exp $ +/* $Id: Text.c,v 1.9 2003/07/24 04:48:09 reinelt Exp $ * * pure ncurses based text driver * @@ -20,6 +20,9 @@ * * * $Log: Text.c,v $ + * Revision 1.9 2003/07/24 04:48:09 reinelt + * 'soft clear' needed for virtual rows + * * Revision 1.8 2003/02/22 07:53:10 reinelt * cfg_get(key,defval) * @@ -97,10 +100,12 @@ static WINDOW *w, *err_win; static int err_rows; -int Text_clear (void) +int Text_clear (int full) { - werase(w); - box(w, 0, 0); + if (full) { + werase(w); + box(w, 0, 0); + } return 0; } @@ -148,7 +153,7 @@ int Text_init (LCD *Self) wmove(err_win, 1 , 0); wrefresh(err_win); } - Text_clear(); + Text_clear(1); return w ? 0 : -1; } |