Changeset 4583015 in mainline for uspace/lib/ui/src/menubar.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/lib/ui/src/menubar.c

    r5c27e77 r4583015  
    185185
    186186        gfx_text_fmt_init(&fmt);
     187        fmt.font = res->font;
    187188        fmt.halign = gfx_halign_left;
    188189        fmt.valign = gfx_valign_top;
     
    215216                        goto error;
    216217
    217                 rc = gfx_puttext(res->font, &tpos, &fmt, caption);
     218                rc = gfx_puttext(&tpos, &fmt, caption);
    218219                if (rc != EOK)
    219220                        goto error;
Note: See TracChangeset for help on using the changeset viewer.