diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-08 20:55:49 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-08 20:55:49 +0000 |
commit | 825cac5ffae86dae959e3c378706e94c670d08c8 (patch) | |
tree | a98fd79f94e2ffc19113e8ae8786337cbb34df6c /apps/examples/nxtext/nxtext_internal.h | |
parent | 487bc7ed3b401ffd54ae3988368c92fe7551d9b1 (diff) | |
download | nuttx-825cac5ffae86dae959e3c378706e94c670d08c8.tar.gz nuttx-825cac5ffae86dae959e3c378706e94c670d08c8.tar.bz2 nuttx-825cac5ffae86dae959e3c378706e94c670d08c8.zip |
Fix some NXTEXT pop-up window issues
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3757 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/nxtext/nxtext_internal.h')
-rw-r--r-- | apps/examples/nxtext/nxtext_internal.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/examples/nxtext/nxtext_internal.h b/apps/examples/nxtext/nxtext_internal.h index 4b7982171..7494c31af 100644 --- a/apps/examples/nxtext/nxtext_internal.h +++ b/apps/examples/nxtext/nxtext_internal.h @@ -221,6 +221,7 @@ struct nxtext_state_s nxgl_mxpixel_t wcolor[CONFIG_NX_NPLANES]; /* Window color */ struct nxgl_size_s wsize; /* Window size */ + struct nxgl_point_s wpos; /* Window position */ /* These characterize the font in use */ @@ -228,10 +229,7 @@ struct nxtext_state_s uint8_t fheight; /* Max height of a font in pixels */ uint8_t fwidth; /* Max width of a font in pixels */ uint8_t spwidth; /* The width of a space */ - - /* This is the next display position */ - - struct nxgl_point_s pos; /* Next display position */ + struct nxgl_point_s fpos; /* Next display position */ /* These describe all text already added to the display */ @@ -289,7 +287,7 @@ extern FAR void *nxtext_listener(FAR void *arg); extern FAR struct nxtext_state_s *nxbg_getstate(void); extern void nxbg_write(NXWINDOW hwnd, FAR const uint8_t *buffer, size_t buflen); -extern void nxbg_refresh(NXWINDOW hwnd); +extern void nxbg_redrawrect(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect); /* Pop-up window interfaces */ |