Changeset 1fa6292 in mainline for uspace/lib/ui/src/dummygc.c


Ignore:
Timestamp:
2025-01-28T14:48:04Z (3 weeks ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
56210a7
Parents:
97116a2
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2025-01-28 14:46:24)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2025-01-28 14:48:04)
Message:

Remove a ton of duplicated code in libui/libgfxfont tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/dummygc.c

    r97116a2 r1fa6292  
    181181                    sizeof(uint32_t);
    182182                tbm->alloc.off0 = 0;
    183                 tbm->alloc.pixels = calloc(sizeof(uint32_t),
     183                tbm->alloc.pixels = calloc(
    184184                    (params->rect.p1.x - params->rect.p0.x) *
    185                     (params->rect.p1.y - params->rect.p0.y));
     185                    (params->rect.p1.y - params->rect.p0.y),
     186                    sizeof(uint32_t));
    186187                tbm->myalloc = true;
    187188                if (tbm->alloc.pixels == NULL) {
Note: See TracChangeset for help on using the changeset viewer.