diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-11 13:30:47 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-11 13:30:47 +0000 |
commit | be05281b7a9a6d0757b8be67eeb5a5cf314968ae (patch) | |
tree | 933933cf3b5ba1ba86bc00b4f91a73d51c6e4344 /apps/examples/nxtext/nxtext_popup.c | |
parent | fcb3f0be7cf755c09970aef69d46c183779dc6f7 (diff) | |
download | nuttx-be05281b7a9a6d0757b8be67eeb5a5cf314968ae.tar.gz nuttx-be05281b7a9a6d0757b8be67eeb5a5cf314968ae.tar.bz2 nuttx-be05281b7a9a6d0757b8be67eeb5a5cf314968ae.zip |
Correct an NX error that would leave stuff on the display when a window is closed
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3769 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/nxtext/nxtext_popup.c')
-rw-r--r-- | apps/examples/nxtext/nxtext_popup.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/apps/examples/nxtext/nxtext_popup.c b/apps/examples/nxtext/nxtext_popup.c index 6397961f7..33170019f 100644 --- a/apps/examples/nxtext/nxtext_popup.c +++ b/apps/examples/nxtext/nxtext_popup.c @@ -395,7 +395,6 @@ errout_with_state: int nxpu_close(NXWINDOW hwnd) { - struct nxgl_rect_s rect; int ret; ret = nx_closewindow(hwnd); @@ -405,19 +404,5 @@ int nxpu_close(NXWINDOW hwnd) g_exitcode = NXEXIT_NXCLOSEWINDOW; return ret; } - - /* NOTE: The following should not be necessary. This is - * a temporary workaround for a bug in the TODO list: - * "When a window is closed, the display is not updated." - */ - - rect.pt1.x = g_pustate.wpos.x; - rect.pt1.y = g_pustate.wpos.y; - rect.pt2.x = g_pustate.wpos.x + g_pustate.wsize.w - 1; - rect.pt2.y = g_pustate.wpos.y + g_pustate.wsize.h - 1; - gvdbg("pt1(%d,%d) pt2(%d,%d)\n", - rect.pt1.x, rect.pt1.y, rect.pt2.x, rect.pt2.y); - - nxbg_redrawrect(g_bgwnd, &rect); return OK; } |