Changeset d145ecb in mainline for uspace/lib/gfxfont/src/glyph.c


Ignore:
Timestamp:
2020-09-21T14:02:42Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
aaf962e6
Parents:
003c413
Message:

Libriff needs unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gfxfont/src/glyph.c

    r003c413 rd145ecb  
    331331                return rc;
    332332
    333         rc = riff_wchunk_write(riffw, (void *) metrics, sizeof(*metrics));
     333        rc = riff_write(riffw, (void *) metrics, sizeof(*metrics));
    334334        if (rc != EOK)
    335335                return rc;
     
    363363                str = gfx_glyph_pattern_str(pat);
    364364
    365                 rc = riff_wchunk_write(riffw, (void *) str, 1 + str_size(str));
     365                rc = riff_write(riffw, (void *) str, 1 + str_size(str));
    366366                if (rc != EOK)
    367367                        return rc;
     
    393393                return rc;
    394394
    395         rc = riff_wchunk_write(riffw, (void *) &glyph->rect,
    396             sizeof(glyph->rect));
    397         if (rc != EOK)
    398                 return rc;
    399 
    400         rc = riff_wchunk_write(riffw, (void *) &glyph->origin,
    401             sizeof(glyph->origin));
     395        rc = riff_write(riffw, (void *) &glyph->rect, sizeof(glyph->rect));
     396        if (rc != EOK)
     397                return rc;
     398
     399        rc = riff_write(riffw, (void *) &glyph->origin, sizeof(glyph->origin));
    402400        if (rc != EOK)
    403401                return rc;
Note: See TracChangeset for help on using the changeset viewer.