summaryrefslogtreecommitdiff
path: root/apps/examples/nx/nx_kbdin.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-07-20 02:13:08 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-07-20 02:13:08 +0000
commit622a6cc576f1e5b97abcb78441ed04674217bfe6 (patch)
tree985c3306340f9b7edaa060b5ecdfe8e44d24c83c /apps/examples/nx/nx_kbdin.c
parent89b5382e22ed897121c864865fdb79acddc9ba14 (diff)
downloadnuttx-622a6cc576f1e5b97abcb78441ed04674217bfe6.tar.gz
nuttx-622a6cc576f1e5b97abcb78441ed04674217bfe6.tar.bz2
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/nx/nx_kbdin.c')
-rw-r--r--apps/examples/nx/nx_kbdin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/examples/nx/nx_kbdin.c b/apps/examples/nx/nx_kbdin.c
index 66d54b046..b2a40d352 100644
--- a/apps/examples/nx/nx_kbdin.c
+++ b/apps/examples/nx/nx_kbdin.c
@@ -323,7 +323,7 @@ nxeg_getglyph(FAR struct nxeg_state_s *st, uint8_t ch)
{
/* No, it is not cached... Does the code map to a glyph? */
- bm = nxf_getbitmap(ch, NXFONT_DEFAULT);
+ bm = nxf_getbitmap(g_fonthandle, ch);
if (!bm)
{
/* No, there is no glyph for this code. Use space */