Changeset ca2680d in mainline for uspace/lib/ui/src/resource.c
- Timestamp:
- 2022-03-07T21:07:02Z (3 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 96c6a00
- Parents:
- 4583015
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/resource.c
r4583015 rca2680d 1 1 /* 2 * Copyright (c) 202 1Jiri Svoboda2 * Copyright (c) 2022 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 67 67 gfx_color_t *wnd_face_color = NULL; 68 68 gfx_color_t *wnd_text_color = NULL; 69 gfx_color_t *wnd_text_hgl_color = NULL; 69 70 gfx_color_t *wnd_sel_text_color = NULL; 71 gfx_color_t *wnd_sel_text_hgl_color = NULL; 70 72 gfx_color_t *wnd_sel_text_bg_color = NULL; 71 73 gfx_color_t *wnd_frame_hi_color = NULL; … … 131 133 goto error; 132 134 135 rc = gfx_color_new_rgb_i16(0, 0, 0, &wnd_text_hgl_color); 136 if (rc != EOK) 137 goto error; 138 133 139 rc = gfx_color_new_rgb_i16(0xffff, 0xffff, 0xffff, &wnd_sel_text_color); 140 if (rc != EOK) 141 goto error; 142 143 rc = gfx_color_new_rgb_i16(0xffff, 0xffff, 0xffff, 144 &wnd_sel_text_hgl_color); 134 145 if (rc != EOK) 135 146 goto error; … … 210 221 resource->wnd_face_color = wnd_face_color; 211 222 resource->wnd_text_color = wnd_text_color; 223 resource->wnd_text_hgl_color = wnd_text_hgl_color; 212 224 resource->wnd_sel_text_color = wnd_sel_text_color; 225 resource->wnd_sel_text_hgl_color = wnd_sel_text_hgl_color; 213 226 resource->wnd_sel_text_bg_color = wnd_sel_text_bg_color; 214 227 resource->wnd_frame_hi_color = wnd_frame_hi_color; … … 246 259 if (wnd_text_color != NULL) 247 260 gfx_color_delete(wnd_text_color); 261 if (wnd_text_hgl_color != NULL) 262 gfx_color_delete(wnd_text_hgl_color); 248 263 if (wnd_sel_text_color != NULL) 249 264 gfx_color_delete(wnd_sel_text_color); 265 if (wnd_sel_text_hgl_color != NULL) 266 gfx_color_delete(wnd_sel_text_hgl_color); 250 267 if (wnd_sel_text_bg_color != NULL) 251 268 gfx_color_delete(wnd_sel_text_bg_color); … … 304 321 gfx_color_t *wnd_face_color = NULL; 305 322 gfx_color_t *wnd_text_color = NULL; 323 gfx_color_t *wnd_text_hgl_color = NULL; 306 324 gfx_color_t *wnd_sel_text_color = NULL; 325 gfx_color_t *wnd_sel_text_hgl_color = NULL; 307 326 gfx_color_t *wnd_sel_text_bg_color = NULL; 308 327 gfx_color_t *wnd_frame_hi_color = NULL; … … 362 381 goto error; 363 382 383 rc = gfx_color_new_ega(0x74, &wnd_text_hgl_color); 384 if (rc != EOK) 385 goto error; 386 364 387 rc = gfx_color_new_ega(0x07, &wnd_sel_text_color); 388 if (rc != EOK) 389 goto error; 390 391 rc = gfx_color_new_ega(0x04, &wnd_sel_text_hgl_color); 365 392 if (rc != EOK) 366 393 goto error; … … 435 462 resource->wnd_face_color = wnd_face_color; 436 463 resource->wnd_text_color = wnd_text_color; 464 resource->wnd_text_hgl_color = wnd_text_hgl_color; 437 465 resource->wnd_sel_text_color = wnd_sel_text_color; 466 resource->wnd_sel_text_hgl_color = wnd_sel_text_hgl_color; 438 467 resource->wnd_sel_text_bg_color = wnd_sel_text_bg_color; 439 468 resource->wnd_frame_hi_color = wnd_frame_hi_color; … … 471 500 if (wnd_text_color != NULL) 472 501 gfx_color_delete(wnd_text_color); 502 if (wnd_text_hgl_color != NULL) 503 gfx_color_delete(wnd_text_hgl_color); 473 504 if (wnd_sel_text_color != NULL) 474 505 gfx_color_delete(wnd_sel_text_color); 506 if (wnd_sel_text_hgl_color != NULL) 507 gfx_color_delete(wnd_sel_text_hgl_color); 475 508 if (wnd_sel_text_bg_color != NULL) 476 509 gfx_color_delete(wnd_sel_text_bg_color);
Note:
See TracChangeset
for help on using the changeset viewer.