Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/draw/font/bitmap_backend.c

    rb7fd2a0 r38d150e  
    5959} bitmap_backend_data_t;
    6060
    61 static errno_t bb_get_font_metrics(void *backend_data, font_metrics_t *font_metrics)
     61static int bb_get_font_metrics(void *backend_data, font_metrics_t *font_metrics)
    6262{
    6363        bitmap_backend_data_t *data = (bitmap_backend_data_t *) backend_data;
     
    6868}
    6969
    70 static errno_t bb_resolve_glyph(void *backend_data, wchar_t c, glyph_id_t *glyph_id)
     70static int bb_resolve_glyph(void *backend_data, wchar_t c, glyph_id_t *glyph_id)
    7171{
    7272        bitmap_backend_data_t *data = (bitmap_backend_data_t *) backend_data;
     
    7474}
    7575
    76 static errno_t bb_get_glyph_metrics(void *backend_data, glyph_id_t glyph_id,
     76static int bb_get_glyph_metrics(void *backend_data, glyph_id_t glyph_id,
    7777    glyph_metrics_t *glyph_metrics)
    7878{
     
    8989        glyph_metrics_t gm;
    9090       
    91         errno_t rc = data->decoder->load_glyph_metrics(data->decoder_data, glyph_id,
     91        int rc = data->decoder->load_glyph_metrics(data->decoder_data, glyph_id,
    9292            &gm);
    9393        if (rc != EOK)
     
    115115}
    116116
    117 static errno_t get_glyph_surface(bitmap_backend_data_t *data, glyph_id_t glyph_id,
     117static int get_glyph_surface(bitmap_backend_data_t *data, glyph_id_t glyph_id,
    118118    surface_t **result)
    119119{
     
    127127       
    128128        surface_t *raw_surface;
    129         errno_t rc = data->decoder->load_glyph_surface(data->decoder_data, glyph_id,
     129        int rc = data->decoder->load_glyph_surface(data->decoder_data, glyph_id,
    130130            &raw_surface);
    131131        if (rc != EOK)
     
    173173}
    174174
    175 static errno_t bb_render_glyph(void *backend_data, drawctx_t *context,
     175static int bb_render_glyph(void *backend_data, drawctx_t *context,
    176176    source_t *source, sysarg_t ox, sysarg_t oy, glyph_id_t glyph_id)
    177177{
     
    179179       
    180180        glyph_metrics_t glyph_metrics;
    181         errno_t rc = bb_get_glyph_metrics(backend_data, glyph_id, &glyph_metrics);
     181        int rc = bb_get_glyph_metrics(backend_data, glyph_id, &glyph_metrics);
    182182        if (rc != EOK)
    183183                return rc;
     
    224224};
    225225
    226 errno_t bitmap_font_create(bitmap_font_decoder_t *decoder, void *decoder_data,
     226int bitmap_font_create(bitmap_font_decoder_t *decoder, void *decoder_data,
    227227    uint32_t glyph_count, font_metrics_t font_metrics, uint16_t points,
    228228    font_t **out_font)
Note: See TracChangeset for help on using the changeset viewer.