From f3372b4926a4a73d6e12a027389673a650130d92 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 3 Dec 2008 00:21:53 +0000 Subject: 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 --- nuttx/graphics/nxbe/nxbe_setposition.c | 8 ++++---- nuttx/graphics/nxbe/nxbe_setsize.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'nuttx') 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); } -- cgit v1.2.3