diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-03 00:21:53 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-03 00:21:53 +0000 |
commit | f3372b4926a4a73d6e12a027389673a650130d92 (patch) | |
tree | ee23cc7320f64d735d31050a4b9f6ebf856f3b8b /nuttx/graphics | |
parent | f39c1b667ec6b707bb925ef4c5b553c6c08c1ebf (diff) | |
download | px4-nuttx-f3372b4926a4a73d6e12a027389673a650130d92.tar.gz px4-nuttx-f3372b4926a4a73d6e12a027389673a650130d92.tar.bz2 px4-nuttx-f3372b4926a4a73d6e12a027389673a650130d92.zip |
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
Diffstat (limited to 'nuttx/graphics')
-rw-r--r-- | nuttx/graphics/nxbe/nxbe_setposition.c | 8 | ||||
-rw-r--r-- | nuttx/graphics/nxbe/nxbe_setsize.c | 8 |
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); } |