Ignore:
File:
1 edited

Legend:

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

    rb433f68 rb41564c  
    11/*
    2  * Copyright (c) 2021 Jiri Svoboda
     2 * Copyright (c) 2020 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    193193
    194194        gfx_text_fmt_init(&fmt);
    195         fmt.color = label->res->wnd_text_color;
    196195        fmt.halign = label->halign;
    197196        fmt.valign = gfx_valign_top;
    198197
     198        rc = gfx_set_color(label->res->gc, label->res->wnd_text_color);
     199        if (rc != EOK)
     200                goto error;
     201
    199202        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);
    204203        if (rc != EOK)
    205204                goto error;
Note: See TracChangeset for help on using the changeset viewer.