diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-08 20:55:49 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-08 20:55:49 +0000 |
commit | 825cac5ffae86dae959e3c378706e94c670d08c8 (patch) | |
tree | a98fd79f94e2ffc19113e8ae8786337cbb34df6c /apps/examples/nxtext/nxtext_main.c | |
parent | 487bc7ed3b401ffd54ae3988368c92fe7551d9b1 (diff) | |
download | nuttx-825cac5ffae86dae959e3c378706e94c670d08c8.tar.gz nuttx-825cac5ffae86dae959e3c378706e94c670d08c8.tar.bz2 nuttx-825cac5ffae86dae959e3c378706e94c670d08c8.zip |
Fix some NXTEXT pop-up window issues
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3757 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/nxtext/nxtext_main.c')
-rw-r--r-- | apps/examples/nxtext/nxtext_main.c | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/apps/examples/nxtext/nxtext_main.c b/apps/examples/nxtext/nxtext_main.c index 08f79169b..6704e148c 100644 --- a/apps/examples/nxtext/nxtext_main.c +++ b/apps/examples/nxtext/nxtext_main.c @@ -392,22 +392,7 @@ int user_start(int argc, char *argv[]) * window after two more seconds. */ - if (popcnt >= 5) - { - /* Destroy the pop-up window and restart the sequence */ - - message("user_start: Close pop-up\n"); - (void)nxpu_close(hwnd); - - /* NOTE: The following should not be necessary. This is - * a temporary workaround for a bug in the TOD list: - * "When a window is closed, the display is not updated." - */ - - nxbg_refresh(g_bgwnd); - popcnt = 0; - } - else if (popcnt >= 3) + if (popcnt == 3) { /* Create a pop-up window */ @@ -425,6 +410,14 @@ int user_start(int argc, char *argv[]) } #endif } + else if (popcnt == 5) + { + /* Destroy the pop-up window and restart the sequence */ + + message("user_start: Close pop-up\n"); + (void)nxpu_close(hwnd); + popcnt = 0; + } /* Give another line of text to the background window. Force this * text to go the background by calling the kbdin method directly. |