Changeset b433f68 in mainline for uspace/lib/gfxfont/test/text.c
- Timestamp:
- 2021-02-26T16:23:36Z (3 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 77ffa01
- Parents:
- fe40b67
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gfxfont/test/text.c
rfe40b67 rb433f68 27 27 */ 28 28 29 #include <gfx/color.h> 29 30 #include <gfx/context.h> 30 31 #include <gfx/font.h> … … 110 111 gfx_font_t *font; 111 112 gfx_context_t *gc; 113 gfx_color_t *color; 112 114 gfx_text_fmt_t fmt; 113 115 gfx_coord2_t pos; … … 118 120 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 119 121 122 rc = gfx_color_new_rgb_i16(0, 0, 0, &color); 123 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 124 120 125 rc = gfx_typeface_create(gc, &tface); 121 126 PCUT_ASSERT_ERRNO_VAL(EOK, rc); … … 127 132 128 133 gfx_text_fmt_init(&fmt); 134 fmt.color = color; 129 135 pos.x = 0; 130 136 pos.y = 0; … … 135 141 gfx_font_close(font); 136 142 gfx_typeface_destroy(tface); 143 gfx_color_delete(color); 137 144 138 145 rc = gfx_context_delete(gc);
Note:
See TracChangeset
for help on using the changeset viewer.