Changeset d70dc1c4 in mainline for uspace/lib/ui/src/resource.c
- Timestamp:
- 2021-01-06T10:06:42Z (3 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7020d1f
- Parents:
- e037cf37
- git-author:
- Jiri Svoboda <jiri@…> (2021-01-05 18:06:37)
- git-committer:
- Jiri Svoboda <jiri@…> (2021-01-06 10:06:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/resource.c
re037cf37 rd70dc1c4 76 76 gfx_color_t *entry_fg_color = NULL; 77 77 gfx_color_t *entry_bg_color = NULL; 78 gfx_color_t *entry_act_bg_color = NULL; 78 79 errno_t rc; 79 80 … … 166 167 167 168 rc = gfx_color_new_rgb_i16(0xffff, 0xffff, 0xffff, &entry_bg_color); 169 if (rc != EOK) 170 goto error; 171 172 rc = gfx_color_new_rgb_i16(0xc8c8, 0xc8c8, 0xc8c8, &entry_act_bg_color); 168 173 if (rc != EOK) 169 174 goto error; … … 193 198 resource->entry_fg_color = entry_fg_color; 194 199 resource->entry_bg_color = entry_bg_color; 200 resource->entry_act_bg_color = entry_act_bg_color; 195 201 196 202 *rresource = resource; … … 234 240 if (entry_bg_color != NULL) 235 241 gfx_color_delete(entry_bg_color); 242 if (entry_act_bg_color != NULL) 243 gfx_color_delete(entry_act_bg_color); 236 244 237 245 if (tface != NULL) … … 270 278 gfx_color_delete(resource->entry_fg_color); 271 279 gfx_color_delete(resource->entry_bg_color); 280 gfx_color_delete(resource->entry_act_bg_color); 272 281 273 282 gfx_font_close(resource->font);
Note:
See TracChangeset
for help on using the changeset viewer.