Need to report the new position before re-drawing

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1394 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2008-12-03 00:21:53 +00:00
parent 9414c64d0d
commit 55e089f25e
2 changed files with 8 additions and 8 deletions

View file

@ -107,14 +107,14 @@ void nxbe_setposition(FAR struct nxbe_window_s *wnd,
nxgl_rectunion(&rect, &before, &wnd->bounds);
nxgl_rectintersect(&rect, &rect, &wnd->be->bkgd.bounds);
/* Report the new size/position */
nxfe_reportposition(wnd);
/* Then redraw this window AND all windows below it. Having moved the
* window, we may have exposed previoulsy obscured portions of windows
* below this one.
*/
nxbe_redrawbelow(wnd->be, wnd, &rect);
/* Report the new size/position */
nxfe_reportposition(wnd);
}

View file

@ -109,14 +109,14 @@ void nxbe_setsize(FAR struct nxbe_window_s *wnd,
nxgl_rectunion(&bounds, &bounds, &wnd->bounds);
/* Report the new size/position */
nxfe_reportposition(wnd);
/* Then redraw this window AND all windows below it. Having resized the
* window, we may have exposed previoulsy obscured portions of windows
* below this one.
*/
nxbe_redrawbelow(wnd->be, wnd, &bounds);
/* Report the new size/position */
nxfe_reportposition(wnd);
}