Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/label.c

    rb41564c rb433f68  
    11/*
    2  * Copyright (c) 2020 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    193193
    194194        gfx_text_fmt_init(&fmt);
     195        fmt.color = label->res->wnd_text_color;
    195196        fmt.halign = label->halign;
    196197        fmt.valign = gfx_valign_top;
    197198
    198         rc = gfx_set_color(label->res->gc, label->res->wnd_text_color);
    199         if (rc != EOK)
    200                 goto error;
    201 
    202199        rc = gfx_puttext(label->res->font, &pos, &fmt, label->text);
     200        if (rc != EOK)
     201                goto error;
     202
     203        rc = gfx_update(label->res->gc);
    203204        if (rc != EOK)
    204205                goto error;
Note: See TracChangeset for help on using the changeset viewer.