Changes in uspace/lib/draw/font/bitmap_backend.c [38d150e:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/draw/font/bitmap_backend.c
r38d150e rb7fd2a0 59 59 } bitmap_backend_data_t; 60 60 61 static int bb_get_font_metrics(void *backend_data, font_metrics_t *font_metrics)61 static errno_t bb_get_font_metrics(void *backend_data, font_metrics_t *font_metrics) 62 62 { 63 63 bitmap_backend_data_t *data = (bitmap_backend_data_t *) backend_data; … … 68 68 } 69 69 70 static int bb_resolve_glyph(void *backend_data, wchar_t c, glyph_id_t *glyph_id)70 static errno_t bb_resolve_glyph(void *backend_data, wchar_t c, glyph_id_t *glyph_id) 71 71 { 72 72 bitmap_backend_data_t *data = (bitmap_backend_data_t *) backend_data; … … 74 74 } 75 75 76 static int bb_get_glyph_metrics(void *backend_data, glyph_id_t glyph_id,76 static errno_t bb_get_glyph_metrics(void *backend_data, glyph_id_t glyph_id, 77 77 glyph_metrics_t *glyph_metrics) 78 78 { … … 89 89 glyph_metrics_t gm; 90 90 91 int rc = data->decoder->load_glyph_metrics(data->decoder_data, glyph_id,91 errno_t rc = data->decoder->load_glyph_metrics(data->decoder_data, glyph_id, 92 92 &gm); 93 93 if (rc != EOK) … … 115 115 } 116 116 117 static int get_glyph_surface(bitmap_backend_data_t *data, glyph_id_t glyph_id,117 static errno_t get_glyph_surface(bitmap_backend_data_t *data, glyph_id_t glyph_id, 118 118 surface_t **result) 119 119 { … … 127 127 128 128 surface_t *raw_surface; 129 int rc = data->decoder->load_glyph_surface(data->decoder_data, glyph_id,129 errno_t rc = data->decoder->load_glyph_surface(data->decoder_data, glyph_id, 130 130 &raw_surface); 131 131 if (rc != EOK) … … 173 173 } 174 174 175 static int bb_render_glyph(void *backend_data, drawctx_t *context,175 static errno_t bb_render_glyph(void *backend_data, drawctx_t *context, 176 176 source_t *source, sysarg_t ox, sysarg_t oy, glyph_id_t glyph_id) 177 177 { … … 179 179 180 180 glyph_metrics_t glyph_metrics; 181 int rc = bb_get_glyph_metrics(backend_data, glyph_id, &glyph_metrics);181 errno_t rc = bb_get_glyph_metrics(backend_data, glyph_id, &glyph_metrics); 182 182 if (rc != EOK) 183 183 return rc; … … 224 224 }; 225 225 226 int bitmap_font_create(bitmap_font_decoder_t *decoder, void *decoder_data,226 errno_t bitmap_font_create(bitmap_font_decoder_t *decoder, void *decoder_data, 227 227 uint32_t glyph_count, font_metrics_t font_metrics, uint16_t points, 228 228 font_t **out_font)
Note:
See TracChangeset
for help on using the changeset viewer.