diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-06 13:45:05 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-06 13:45:05 +0000 |
commit | 3df1d5fd1bbb583c3bd44a24939e49fa0d52c161 (patch) | |
tree | 885d99188138df23399a9c3238bffc75c5677802 /nuttx/include | |
parent | 577e371190dfd26667149dbbf66d49c7c1374243 (diff) | |
download | px4-nuttx-3df1d5fd1bbb583c3bd44a24939e49fa0d52c161.tar.gz px4-nuttx-3df1d5fd1bbb583c3bd44a24939e49fa0d52c161.tar.bz2 px4-nuttx-3df1d5fd1bbb583c3bd44a24939e49fa0d52c161.zip |
Allocate smaller buffers for glyphs
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1422 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/nxfonts.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/nuttx/include/nuttx/nxfonts.h b/nuttx/include/nuttx/nxfonts.h index 4b9a0e3ed..766b36558 100644 --- a/nuttx/include/nuttx/nxfonts.h +++ b/nuttx/include/nuttx/nxfonts.h @@ -150,33 +150,39 @@ EXTERN FAR const struct nx_fontbitmap_s *nxf_getbitmap(uint16 ch); * height - The max height of the returned char in rows * width - The max width of the returned char in pixels * stride - The width of the destination buffer in bytes - * ch - The character code to convert + * bm - Describes the character glyph to convert * color - The color to use for '1' bits in the font bitmap * (0 bits are transparent) * * Returned Value: - * On Success, this function returns the actual width of the font in bytes. - * on failed, a negated errno is retured. + * OK on Success, ERROR: on failure with errno set appropriately. + * (never fails) * ****************************************************************************/ EXTERN int nxf_convert_2bpp(FAR ubyte *dest, uint16 height, - uint16 width, uint16 stride, uint16 ch, + uint16 width, uint16 stride, + FAR const struct nx_fontbitmap_s *bm, nxgl_mxpixel_t color); EXTERN int nxf_convert_4bpp(FAR ubyte *dest, uint16 height, - uint16 width, uint16 stride, uint16 ch, + uint16 width, uint16 stride, + FAR const struct nx_fontbitmap_s *bm, nxgl_mxpixel_t color); EXTERN int nxf_convert_8bpp(FAR ubyte *dest, uint16 height, - uint16 width, uint16 stride, uint16 ch, + uint16 width, uint16 stride, + FAR const struct nx_fontbitmap_s *bm, nxgl_mxpixel_t color); EXTERN int nxf_convert_16bpp(FAR uint16 *dest, uint16 height, - uint16 width, uint16 stride, uint16 ch, + uint16 width, uint16 stride, + FAR const struct nx_fontbitmap_s *bm, nxgl_mxpixel_t color); EXTERN int nxf_convert_24bpp(FAR uint32 *dest, uint16 height, - uint16 width, uint16 stride, uint16 ch, + uint16 width, uint16 stride, + FAR const struct nx_fontbitmap_s *bm, nxgl_mxpixel_t color); EXTERN int nxf_convert_32bpp(FAR uint32 *dest, uint16 height, - uint16 width, uint16 stride, uint16 ch, + uint16 width, uint16 stride, + FAR const struct nx_fontbitmap_s *bm, nxgl_mxpixel_t color); #undef EXTERN |