mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 10:58:49 +08:00
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:
parent
9414c64d0d
commit
55e089f25e
2 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue