Changeset 32066f2 in mainline for uspace/lib/gfxfont


Ignore:
Timestamp:
2020-08-27T11:24:39Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e2776ff
Parents:
20d0098
git-author:
Jiri Svoboda <jiri@…> (2020-08-26 18:34:29)
git-committer:
Jiri Svoboda <jiri@…> (2020-08-27 11:24:39)
Message:

Need to be able to paint in the negative quadrants

Location:
uspace/lib/gfxfont
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gfxfont/include/gfx/glyph_bmp.h

    r20d0098 r32066f2  
    4545extern errno_t gfx_glyph_bmp_save(gfx_glyph_bmp_t *);
    4646extern void gfx_glyph_bmp_close(gfx_glyph_bmp_t *);
     47extern void gfx_glyph_bmp_get_rect(gfx_glyph_bmp_t *, gfx_rect_t *);
    4748extern int gfx_glyph_bmp_getpix(gfx_glyph_bmp_t *, gfx_coord_t, gfx_coord_t);
    4849extern errno_t gfx_glyph_bmp_setpix(gfx_glyph_bmp_t *, gfx_coord_t,
  • uspace/lib/gfxfont/src/glyph_bmp.c

    r20d0098 r32066f2  
    165165}
    166166
     167/** Get rectangle covered by glyph bitmap.
     168 *
     169 * @param bmp Glyph bitmap
     170 * @param rect Place to store rectangle
     171 */
     172void gfx_glyph_bmp_get_rect(gfx_glyph_bmp_t *bmp, gfx_rect_t *rect)
     173{
     174        *rect = bmp->rect;
     175}
     176
    167177/** Get pixel from glyph bitmap.
    168178 *
Note: See TracChangeset for help on using the changeset viewer.