Changeset 4583015 in mainline for uspace/app/fontedit/fontedit.c


Ignore:
Timestamp:
2022-03-07T16:10:44Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ca2680d
Parents:
5c27e77
Message:

Add font to gfx_text_fmt_t

This is quite logical and saves us one argument that we need to pass to
all text formatting functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/fontedit/fontedit.c

    r5c27e77 r4583015  
    503503
    504504        gfx_text_fmt_init(&fmt);
     505        fmt.font = fedit->font;
    505506        fmt.color = color;
    506507
     
    508509        pos.y = y;
    509510
    510         return gfx_puttext(fedit->font, &pos, &fmt, str);
     511        return gfx_puttext(&pos, &fmt, str);
    511512}
    512513
Note: See TracChangeset for help on using the changeset viewer.