diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2003-07-24 04:48:09 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2003-07-24 04:48:09 +0000 |
commit | 7ed5b7a1b4bc3cc31aa89bba015c3a5e856b2ad8 (patch) | |
tree | b53a7102debdc89d8fe44e0c6b913019d78f60bc /Text.c | |
parent | 93be7266dd3f05b297c7b25920d6362452a447f9 (diff) | |
download | lcd4linux-7ed5b7a1b4bc3cc31aa89bba015c3a5e856b2ad8.tar.gz |
[lcd4linux @ 2003-07-24 04:48:09 by reinelt]
'soft clear' needed for virtual rows
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@202 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-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; } |