diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-19 20:08:28 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-19 20:08:28 +0000 |
commit | e22652b8670c85c11bed70615d97273d455d58a9 (patch) | |
tree | afb799c4411fe56a1af05c4e25d5f44453691cbe /apps/examples/nxhello | |
parent | 40e9e372738c38180562ab1ff3b1f91d42c14cdd (diff) | |
download | nuttx-e22652b8670c85c11bed70615d97273d455d58a9.tar.gz nuttx-e22652b8670c85c11bed70615d97273d455d58a9.tar.bz2 nuttx-e22652b8670c85c11bed70615d97273d455d58a9.zip |
Setup environment to support multiple fonts
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3799 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/nxhello')
-rw-r--r-- | apps/examples/nxhello/nxhello_bkgd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/examples/nxhello/nxhello_bkgd.c b/apps/examples/nxhello/nxhello_bkgd.c index 950d6e837..9ec3e5141 100644 --- a/apps/examples/nxhello/nxhello_bkgd.c +++ b/apps/examples/nxhello/nxhello_bkgd.c @@ -228,7 +228,7 @@ static void nxhello_center(FAR struct nxgl_point_s *pos, { /* Get the font bitmap for this character */ - fbm = nxf_getbitmap(*ptr); + fbm = nxf_getbitmap(*ptr, NXFONT_DEFAULT); if (fbm) { /* Add the font size */ @@ -353,7 +353,7 @@ void nxhello_hello(NXWINDOW hwnd) /* Get information about the font we are going to use */ - fontset = nxf_getfontset(); + fontset = nxf_getfontset(NXFONT_DEFAULT); /* Allocate a bit of memory to hold the largest rendered font */ @@ -377,7 +377,7 @@ void nxhello_hello(NXWINDOW hwnd) { /* Get the bitmap font for this ASCII code */ - fbm = nxf_getbitmap(*ptr); + fbm = nxf_getbitmap(*ptr, NXFONT_DEFAULT); if (fbm) { uint8_t fheight; /* Height of this glyph (in rows) */ |