mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
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
This commit is contained in:
@@ -104,7 +104,7 @@ void nxbe_closewindow(struct nxbe_window_s *wnd)
|
||||
|
||||
if (wnd->above)
|
||||
{
|
||||
/* Yes, now the window below that on is the window below
|
||||
/* Yes, now the window below that one is the window below
|
||||
* the one being closed.
|
||||
*/
|
||||
|
||||
@@ -126,5 +126,12 @@ void nxbe_closewindow(struct nxbe_window_s *wnd)
|
||||
*/
|
||||
|
||||
wnd->below->above = wnd->above;
|
||||
|
||||
/* Redraw the windows that were below us (and may now be exposed) */
|
||||
|
||||
nxbe_redrawbelow(be, wnd->below, &wnd->bounds);
|
||||
|
||||
/* Then discard the window structure */
|
||||
|
||||
free(wnd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user