summaryrefslogtreecommitdiff
path: root/nuttx/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/graphics')
-rw-r--r--nuttx/graphics/nxbe/nxbe_setposition.c8
-rw-r--r--nuttx/graphics/nxbe/nxbe_setsize.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/nuttx/graphics/nxbe/nxbe_setposition.c b/nuttx/graphics/nxbe/nxbe_setposition.c
index 826beb3c8..3130a67ec 100644
--- a/nuttx/graphics/nxbe/nxbe_setposition.c
+++ b/nuttx/graphics/nxbe/nxbe_setposition.c
@@ -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);
}
diff --git a/nuttx/graphics/nxbe/nxbe_setsize.c b/nuttx/graphics/nxbe/nxbe_setsize.c
index 39b6b3f16..133b68b67 100644
--- a/nuttx/graphics/nxbe/nxbe_setsize.c
+++ b/nuttx/graphics/nxbe/nxbe_setsize.c
@@ -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);
}