diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-08 18:21:04 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-08 18:21:04 +0000 |
commit | 8ab28535bd5b776e1a5b1a6b3e8ae078986acf6d (patch) | |
tree | ac7e11f8cc08e69421ddf241e33c0075d176da69 /apps/examples/nxtext/nxtext_putc.c | |
parent | a4e513bfbe4c06a36fb2ee4d0bc53de015a5fe2e (diff) | |
download | px4-nuttx-8ab28535bd5b776e1a5b1a6b3e8ae078986acf6d.tar.gz px4-nuttx-8ab28535bd5b776e1a5b1a6b3e8ae078986acf6d.tar.bz2 px4-nuttx-8ab28535bd5b776e1a5b1a6b3e8ae078986acf6d.zip |
Changes for clean NXTEXT compile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3755 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/nxtext/nxtext_putc.c')
-rw-r--r-- | apps/examples/nxtext/nxtext_putc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/examples/nxtext/nxtext_putc.c b/apps/examples/nxtext/nxtext_putc.c index d2035f223..09551c32f 100644 --- a/apps/examples/nxtext/nxtext_putc.c +++ b/apps/examples/nxtext/nxtext_putc.c @@ -120,7 +120,7 @@ nxtext_renderglyph(FAR struct nxtext_state_s *st, /* Make sure that there is room for another glyph */ message("nxtext_renderglyph: ch=%02x\n", ch); - if (st->nglyphs < NXTK_MAXKBDCHARS) + if (st->nglyphs < st->nglyphs) { /* Allocate the glyph */ @@ -193,8 +193,8 @@ nxtext_renderglyph(FAR struct nxtext_state_s *st, /* Then render the glyph into the allocated memory */ ret = RENDERER((FAR nxgl_mxpixel_t*)glyph->bitmap, - glyph->fheight, glyph->width, glyph->stride, - bm, st->fcolor); + glyph->height, glyph->width, glyph->stride, + bm, st->fcolor[0]); if (ret < 0) { /* Actually, the RENDERER never returns a failure */ @@ -227,7 +227,7 @@ nxtext_addspace(FAR struct nxtext_state_s *st, uint8_t ch) /* Make sure that there is room for another glyph */ - if (st->nglyphs < NXTK_MAXKBDCHARS) + if (st->nglyphs < st->nglyphs) { /* Allocate the NULL glyph */ @@ -313,7 +313,7 @@ nxtext_addchar(FAR struct nxtext_state_s *st, uint8_t ch) /* Is there space for another character on the display? */ - if (st->nchars < NXTK_MAXKBDCHARS) + if (st->nchars < st->nchars) { /* Yes, setup the bitmap */ @@ -369,7 +369,7 @@ void nxtext_home(FAR struct nxtext_state_s *st) { /* The first character is one space from the left */ - st->pox.x = st->spwidth; + st->pos.x = st->spwidth; /* And two lines from the top */ @@ -388,7 +388,7 @@ void nxtext_newline(FAR struct nxtext_state_s *st) { /* Carriage return: The first character is one space from the left */ - st->pox.x = st->spwidth; + st->pos.x = st->spwidth; /* Linefeed: Done the max font height + 2 */ @@ -442,7 +442,7 @@ void nxtext_putc(NXWINDOW hwnd, FAR struct nxtext_state_s *st, uint8_t ch) void nxtext_fillchar(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect, FAR const struct nxtext_bitmap_s *bm) { - FAR void *src = (FAR void *)bm->glyph->bitmap; + FAR const void *src = (FAR const void *)bm->glyph->bitmap; struct nxgl_rect_s intersection; int ret; |