diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-20 02:13:08 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-20 02:13:08 +0000 |
commit | 622a6cc576f1e5b97abcb78441ed04674217bfe6 (patch) | |
tree | 985c3306340f9b7edaa060b5ecdfe8e44d24c83c /apps/examples/nxtext/nxtext_popup.c | |
parent | 89b5382e22ed897121c864865fdb79acddc9ba14 (diff) | |
download | px4-nuttx-622a6cc576f1e5b97abcb78441ed04674217bfe6.tar.gz px4-nuttx-622a6cc576f1e5b97abcb78441ed04674217bfe6.tar.bz2 px4-nuttx-622a6cc576f1e5b97abcb78441ed04674217bfe6.zip |
Use a handle instead of an ID in each font lookup; this saves doing the font set lookup each time
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3802 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/nxtext/nxtext_popup.c')
-rw-r--r-- | apps/examples/nxtext/nxtext_popup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/examples/nxtext/nxtext_popup.c b/apps/examples/nxtext/nxtext_popup.c index bf9fbae19..8cc72a89e 100644 --- a/apps/examples/nxtext/nxtext_popup.c +++ b/apps/examples/nxtext/nxtext_popup.c @@ -304,7 +304,7 @@ static inline void nxpu_initstate(void) */ #ifdef CONFIG_NX_KBD - fontset = nxf_getfontset(NXFONT_DEFAULT); + fontset = nxf_getfontset(g_fonthandle); g_pustate.fheight = fontset->mxheight; g_pustate.fwidth = fontset->mxwidth; g_pustate.spwidth = fontset->spwidth; |