Changeset 74f59b7 in mainline


Ignore:
Timestamp:
2020-10-06T18:45:54Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8bf9058
Parents:
8fa65af0
Message:

Glyph background pixels need keying out using color key

File:
1 edited

Legend:

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

    r8fa65af0 r74f59b7  
    122122        gfx_bitmap_params_init(&params);
    123123        params.rect = font->rect;
     124        params.flags = bmpf_color_key;
     125        params.key_color = PIXEL(0, 0, 0, 0);
    124126
    125127        rc = gfx_bitmap_create(tface->gc, &params, NULL, &font->bitmap);
     
    364366        if (nrect->p1.y - nrect->p0.y > params.rect.p1.y)
    365367                params.rect.p1.y = nrect->p1.y - nrect->p0.y;
     368        params.flags = bmpf_color_key;
     369        params.key_color = PIXEL(0, 0, 0, 0);
    366370
    367371        rc = gfx_bitmap_create(font->typeface->gc, &params, NULL, &nbitmap);
     
    701705        params.rect.p1.x = width;
    702706        params.rect.p1.y = height;
     707        params.flags = bmpf_color_key;
     708        params.key_color = PIXEL(0, 0, 0, 0);
    703709
    704710        rc = gfx_bitmap_create(font->typeface->gc, &params, NULL, &bitmap);
Note: See TracChangeset for help on using the changeset viewer.