Changeset 4583015 in mainline for uspace/app/edit/edit.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/edit/edit.c

    r5c27e77 r4583015  
    12591259
    12601260        gfx_text_fmt_init(&fmt);
     1261        fmt.font = font;
    12611262        fmt.color = pane->color;
    12621263
     
    13181319                                        return rc;
    13191320
    1320                                 rc = gfx_puttext(font, &tpos, &fmt, cbuf);
     1321                                rc = gfx_puttext(&tpos, &fmt, cbuf);
    13211322                                if (rc != EOK)
    13221323                                        return rc;
Note: See TracChangeset for help on using the changeset viewer.