Skip to content
Snippets Groups Projects
Commit 55e089f2 authored by patacongo's avatar patacongo
Browse files

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
parent 9414c64d
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment