Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 17fac946 in mainline


Ignore:
Timestamp:
2021-03-10T15:24:24Z (6 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
36795edf
Parents:
f73a8e3
git-author:
Jiri Svoboda <jiri@…> (2021-03-09 18:23:58)
git-committer:
Jiri Svoboda <jiri@…> (2021-03-10 15:24:24)
Message:

Fix gfx_puttext() failing with empty string in text mode

File:
1 edited

Legend:

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

    rf73a8e3 r17fac946  
    137137        params.rect.p1.y = 1;
    138138
     139        if (params.rect.p1.x == 0) {
     140                /* Nothing to do. Avoid creating bitmap of zero width. */
     141                return EOK;
     142        }
     143
    139144        rc = gfx_bitmap_create(gc, &params, NULL, &bitmap);
    140145        if (rc != EOK)
Note: See TracChangeset for help on using the changeset viewer.