diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-28 18:47:40 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-28 18:47:40 +0000 |
commit | 5e28b5ed36048a1ddb2c338b84c96a36ee79a72f (patch) | |
tree | e6fa82500462cbf999e1c20504985e44dd570c2f /nuttx/graphics/nxsu/nx_open.c | |
parent | 134e11b64f0d29f3e584de87b7c52009cca91ba6 (diff) | |
download | px4-nuttx-5e28b5ed36048a1ddb2c338b84c96a36ee79a72f.tar.gz px4-nuttx-5e28b5ed36048a1ddb2c338b84c96a36ee79a72f.tar.bz2 px4-nuttx-5e28b5ed36048a1ddb2c338b84c96a36ee79a72f.zip |
Missing initialization of background window
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1339 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxsu/nx_open.c')
-rw-r--r-- | nuttx/graphics/nxsu/nx_open.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nuttx/graphics/nxsu/nx_open.c b/nuttx/graphics/nxsu/nx_open.c index c124ce8ef..a28d385ae 100644 --- a/nuttx/graphics/nxsu/nx_open.c +++ b/nuttx/graphics/nxsu/nx_open.c @@ -97,6 +97,20 @@ static inline int nxsu_setup(FAR struct fb_vtable_s *fb, } #endif + /* Initialize the non-NULL elements of the background window */ + + fe->be.bkgd.be = &fe->be; + + fe->be.bkgd.bounds.pt2.x = fe->be.vinfo.xres; + fe->be.bkgd.bounds.pt2.y = fe->be.vinfo.yres; + + /* Complete initialization of the server state structure. The + * window list contains only one element: The background window + * with nothing else above or below it + */ + + fe->be.topwnd = &fe->be.bkgd; + /* Initialize the mouse position */ #ifdef CONFIG_NX_MOUSE |