diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-06 14:41:24 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-06 14:41:24 +0000 |
commit | 0f0d60e9aff0ac59c14e98db8d52abf7da3edd51 (patch) | |
tree | 10c0d46de750026bd610c5b3d2137bbc419dd77b /nuttx/graphics | |
parent | 3df1d5fd1bbb583c3bd44a24939e49fa0d52c161 (diff) | |
download | px4-nuttx-0f0d60e9aff0ac59c14e98db8d52abf7da3edd51.tar.gz px4-nuttx-0f0d60e9aff0ac59c14e98db8d52abf7da3edd51.tar.bz2 px4-nuttx-0f0d60e9aff0ac59c14e98db8d52abf7da3edd51.zip |
Correct size of background window
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1423 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics')
-rw-r--r-- | nuttx/graphics/nxmu/nxmu_server.c | 4 | ||||
-rw-r--r-- | nuttx/graphics/nxsu/nx_open.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/graphics/nxmu/nxmu_server.c b/nuttx/graphics/nxmu/nxmu_server.c index 5a592eec7..4b18a7580 100644 --- a/nuttx/graphics/nxmu/nxmu_server.c +++ b/nuttx/graphics/nxmu/nxmu_server.c @@ -255,8 +255,8 @@ static inline int nxmu_setup(FAR const char *mqname, fe->be.bkgd.conn = &fe->conn; fe->be.bkgd.be = (FAR struct nxbe_state_s*)fe; - fe->be.bkgd.bounds.pt2.x = fe->be.vinfo.xres; - fe->be.bkgd.bounds.pt2.y = fe->be.vinfo.yres; + fe->be.bkgd.bounds.pt2.x = fe->be.vinfo.xres - 1; + fe->be.bkgd.bounds.pt2.y = fe->be.vinfo.yres - 1; /* Complete initialization of the server state structure. The * window list contains only one element: The background window diff --git a/nuttx/graphics/nxsu/nx_open.c b/nuttx/graphics/nxsu/nx_open.c index 15efd3dbe..901b77109 100644 --- a/nuttx/graphics/nxsu/nx_open.c +++ b/nuttx/graphics/nxsu/nx_open.c @@ -139,8 +139,8 @@ static inline int nxsu_setup(FAR struct fb_vtable_s *fb, fe->be.bkgd.be = &fe->be; fe->be.bkgd.cb = &g_bkgdcb; - fe->be.bkgd.bounds.pt2.x = fe->be.vinfo.xres; - fe->be.bkgd.bounds.pt2.y = fe->be.vinfo.yres; + fe->be.bkgd.bounds.pt2.x = fe->be.vinfo.xres - 1; + fe->be.bkgd.bounds.pt2.y = fe->be.vinfo.yres - 1; /* Complete initialization of the server state structure. The * window list contains only one element: The background window |