Changeset 1c6c3e1d in mainline for uspace/lib/ui/src/resource.c


Ignore:
Timestamp:
2023-10-22T17:55:33Z (14 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
ticket/834-toolchain-update
Children:
350ec74
Parents:
315d487 (diff), 133461c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into ticket

File:
1 edited

Legend:

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

    r315d487 r1c6c3e1d  
    6868        gfx_color_t *wnd_face_color = NULL;
    6969        gfx_color_t *wnd_text_color = NULL;
     70        gfx_color_t *wnd_dis_text_color = NULL;
    7071        gfx_color_t *wnd_text_hgl_color = NULL;
    7172        gfx_color_t *wnd_sel_text_color = NULL;
     
    140141                goto error;
    141142
     143        rc = gfx_color_new_rgb_i16(0x9696, 0x9696, 0x9696, &wnd_dis_text_color);
     144        if (rc != EOK)
     145                goto error;
     146
    142147        rc = gfx_color_new_rgb_i16(0, 0, 0, &wnd_text_hgl_color);
    143148        if (rc != EOK)
     
    239244        resource->wnd_face_color = wnd_face_color;
    240245        resource->wnd_text_color = wnd_text_color;
     246        resource->wnd_dis_text_color = wnd_dis_text_color;
    241247        resource->wnd_text_hgl_color = wnd_text_hgl_color;
    242248        resource->wnd_sel_text_color = wnd_sel_text_color;
     
    282288        if (wnd_text_color != NULL)
    283289                gfx_color_delete(wnd_text_color);
     290        if (wnd_dis_text_color != NULL)
     291                gfx_color_delete(wnd_dis_text_color);
    284292        if (wnd_text_hgl_color != NULL)
    285293                gfx_color_delete(wnd_text_hgl_color);
     
    350358        gfx_color_t *wnd_face_color = NULL;
    351359        gfx_color_t *wnd_text_color = NULL;
     360        gfx_color_t *wnd_dis_text_color = NULL;
    352361        gfx_color_t *wnd_text_hgl_color = NULL;
    353362        gfx_color_t *wnd_sel_text_color = NULL;
     
    416425                goto error;
    417426
     427        rc = gfx_color_new_ega(0x78, &wnd_dis_text_color);
     428        if (rc != EOK)
     429                goto error;
     430
    418431        rc = gfx_color_new_ega(0x74, &wnd_text_hgl_color);
    419432        if (rc != EOK)
     
    506519        resource->wnd_face_color = wnd_face_color;
    507520        resource->wnd_text_color = wnd_text_color;
     521        resource->wnd_dis_text_color = wnd_dis_text_color;
    508522        resource->wnd_text_hgl_color = wnd_text_hgl_color;
    509523        resource->wnd_sel_text_color = wnd_sel_text_color;
     
    549563        if (wnd_text_color != NULL)
    550564                gfx_color_delete(wnd_text_color);
     565        if (wnd_dis_text_color != NULL)
     566                gfx_color_delete(wnd_dis_text_color);
    551567        if (wnd_text_hgl_color != NULL)
    552568                gfx_color_delete(wnd_text_hgl_color);
     
    630646        gfx_color_delete(resource->wnd_face_color);
    631647        gfx_color_delete(resource->wnd_text_color);
     648        gfx_color_delete(resource->wnd_dis_text_color);
    632649        gfx_color_delete(resource->wnd_sel_text_color);
    633650        gfx_color_delete(resource->wnd_sel_text_bg_color);
Note: See TracChangeset for help on using the changeset viewer.