Changeset 1c6c3e1d in mainline for uspace/lib/ui/src/resource.c
- Timestamp:
- 2023-10-22T17:55:33Z (14 months ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/resource.c
r315d487 r1c6c3e1d 68 68 gfx_color_t *wnd_face_color = NULL; 69 69 gfx_color_t *wnd_text_color = NULL; 70 gfx_color_t *wnd_dis_text_color = NULL; 70 71 gfx_color_t *wnd_text_hgl_color = NULL; 71 72 gfx_color_t *wnd_sel_text_color = NULL; … … 140 141 goto error; 141 142 143 rc = gfx_color_new_rgb_i16(0x9696, 0x9696, 0x9696, &wnd_dis_text_color); 144 if (rc != EOK) 145 goto error; 146 142 147 rc = gfx_color_new_rgb_i16(0, 0, 0, &wnd_text_hgl_color); 143 148 if (rc != EOK) … … 239 244 resource->wnd_face_color = wnd_face_color; 240 245 resource->wnd_text_color = wnd_text_color; 246 resource->wnd_dis_text_color = wnd_dis_text_color; 241 247 resource->wnd_text_hgl_color = wnd_text_hgl_color; 242 248 resource->wnd_sel_text_color = wnd_sel_text_color; … … 282 288 if (wnd_text_color != NULL) 283 289 gfx_color_delete(wnd_text_color); 290 if (wnd_dis_text_color != NULL) 291 gfx_color_delete(wnd_dis_text_color); 284 292 if (wnd_text_hgl_color != NULL) 285 293 gfx_color_delete(wnd_text_hgl_color); … … 350 358 gfx_color_t *wnd_face_color = NULL; 351 359 gfx_color_t *wnd_text_color = NULL; 360 gfx_color_t *wnd_dis_text_color = NULL; 352 361 gfx_color_t *wnd_text_hgl_color = NULL; 353 362 gfx_color_t *wnd_sel_text_color = NULL; … … 416 425 goto error; 417 426 427 rc = gfx_color_new_ega(0x78, &wnd_dis_text_color); 428 if (rc != EOK) 429 goto error; 430 418 431 rc = gfx_color_new_ega(0x74, &wnd_text_hgl_color); 419 432 if (rc != EOK) … … 506 519 resource->wnd_face_color = wnd_face_color; 507 520 resource->wnd_text_color = wnd_text_color; 521 resource->wnd_dis_text_color = wnd_dis_text_color; 508 522 resource->wnd_text_hgl_color = wnd_text_hgl_color; 509 523 resource->wnd_sel_text_color = wnd_sel_text_color; … … 549 563 if (wnd_text_color != NULL) 550 564 gfx_color_delete(wnd_text_color); 565 if (wnd_dis_text_color != NULL) 566 gfx_color_delete(wnd_dis_text_color); 551 567 if (wnd_text_hgl_color != NULL) 552 568 gfx_color_delete(wnd_text_hgl_color); … … 630 646 gfx_color_delete(resource->wnd_face_color); 631 647 gfx_color_delete(resource->wnd_text_color); 648 gfx_color_delete(resource->wnd_dis_text_color); 632 649 gfx_color_delete(resource->wnd_sel_text_color); 633 650 gfx_color_delete(resource->wnd_sel_text_bg_color);
Note:
See TracChangeset
for help on using the changeset viewer.