diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-01 03:07:36 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-01 03:07:36 +0000 |
commit | fb34a4488c575b10b465ef59cd72a568079330ce (patch) | |
tree | 4e6e8a1b3b7be74e8a94da64c2fd6afda05ea366 /nuttx/graphics/nxbe | |
parent | 9f5dcb241aafc1ee3744af6393d2d2b2a078f4ad (diff) | |
download | px4-nuttx-fb34a4488c575b10b465ef59cd72a568079330ce.tar.gz px4-nuttx-fb34a4488c575b10b465ef59cd72a568079330ce.tar.bz2 px4-nuttx-fb34a4488c575b10b465ef59cd72a568079330ce.zip |
Lowered window was not being redrawn
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1365 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxbe')
-rw-r--r-- | nuttx/graphics/nxbe/nxbe_lower.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/nuttx/graphics/nxbe/nxbe_lower.c b/nuttx/graphics/nxbe/nxbe_lower.c index 5571f98af..83ce18c1f 100644 --- a/nuttx/graphics/nxbe/nxbe_lower.c +++ b/nuttx/graphics/nxbe/nxbe_lower.c @@ -79,7 +79,8 @@ void nxbe_lower(FAR struct nxbe_window_s *wnd) { - FAR struct nxbe_state_s *be = wnd->be; + FAR struct nxbe_state_s *be = wnd->be; + FAR struct nxbe_window_s *below; /* If the window is already at the bottom, then there is nothing to do */ @@ -108,15 +109,17 @@ void nxbe_lower(FAR struct nxbe_window_s *wnd) be->topwnd->above = NULL; } - /* Redraw the windows that were below us (excluding this window that - * will be at the bottom; it is currently not in the list) - */ + /* Remember the window that was just below us */ - nxbe_redrawbelow(be, wnd->below, &wnd->bounds); + below = wnd->below; /* Then put the lowered window at the bottom (just above the background window) */ wnd->below = &be->bkgd; wnd->above = be->bkgd.above; be->bkgd.above = wnd; + + /* Redraw the windows that were below us (but now are above) */ + + nxbe_redrawbelow(be, below, &wnd->bounds); } |