diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-02 20:02:59 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-02 20:02:59 +0000 |
commit | aebaefc303f12beb92c4da219411bdb00aa4e03c (patch) | |
tree | 770fd1403c0aaf22a23220a4f95f689de9f8cf70 /nuttx/graphics/nxsu | |
parent | 124c331605b174afc08f7ef498209952b4a1dbc5 (diff) | |
download | px4-nuttx-aebaefc303f12beb92c4da219411bdb00aa4e03c.tar.gz px4-nuttx-aebaefc303f12beb92c4da219411bdb00aa4e03c.tar.bz2 px4-nuttx-aebaefc303f12beb92c4da219411bdb00aa4e03c.zip |
Don't keep sizes in rectangles
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1392 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxsu')
-rw-r--r-- | nuttx/graphics/nxsu/nx_setsize.c | 2 | ||||
-rw-r--r-- | nuttx/graphics/nxsu/nxsu_reportposition.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/graphics/nxsu/nx_setsize.c b/nuttx/graphics/nxsu/nx_setsize.c index fdacc4741..c15150ae1 100644 --- a/nuttx/graphics/nxsu/nx_setsize.c +++ b/nuttx/graphics/nxsu/nx_setsize.c @@ -85,7 +85,7 @@ * ****************************************************************************/ -int nx_setsize(NXWINDOW hwnd, FAR struct nxgl_rect_s *size) +int nx_setsize(NXWINDOW hwnd, FAR struct nxgl_size_s *size) { #ifdef CONFIG_DEBUG if (!hwnd || !size) diff --git a/nuttx/graphics/nxsu/nxsu_reportposition.c b/nuttx/graphics/nxsu/nxsu_reportposition.c index 9ad8197e6..972986f9d 100644 --- a/nuttx/graphics/nxsu/nxsu_reportposition.c +++ b/nuttx/graphics/nxsu/nxsu_reportposition.c @@ -81,7 +81,7 @@ void nxfe_reportposition(FAR struct nxbe_window_s *wnd) { FAR struct nxbe_state_s *be = wnd->be; - struct nxgl_rect_s rect; + struct nxgl_size_s size; #ifdef CONFIG_DEBUG if (!wnd) @@ -96,9 +96,9 @@ void nxfe_reportposition(FAR struct nxbe_window_s *wnd) if (wnd->cb->position) { - /* Convert the frame rectangle to a window-relative rectangle */ + /* Get the size of the bounding rectangle */ - nxgl_rectoffset(&rect, &wnd->bounds, -wnd->origin.x, -wnd->origin.y); + nxgl_rectsize(&size, &wnd->bounds); /* And provide this to the client */ |