Changeset b433f68 in mainline for uspace/lib/ui/src/checkbox.c
- Timestamp:
- 2021-02-26T16:23:36Z (3 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 77ffa01
- Parents:
- fe40b67
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/checkbox.c
rfe40b67 rb433f68 192 192 193 193 gfx_text_fmt_init(&fmt); 194 fmt.color = checkbox->res->entry_fg_color; 194 195 fmt.halign = gfx_halign_center; 195 196 fmt.valign = gfx_valign_center; 196 197 rc = gfx_set_color(checkbox->res->gc,198 checkbox->res->entry_fg_color);199 if (rc != EOK)200 goto error;201 197 202 198 rc = gfx_puttext(checkbox->res->font, &box_center, &fmt, "X"); … … 207 203 /* Paint checkbox label */ 208 204 209 rc = gfx_set_color(checkbox->res->gc, checkbox->res->wnd_text_color);210 if (rc != EOK)211 goto error;212 213 /* Label position */214 205 pos.x = box_rect.p1.x + checkbox_label_margin; 215 206 pos.y = (box_rect.p0.y + box_rect.p1.y) / 2; 216 207 217 208 gfx_text_fmt_init(&fmt); 209 fmt.color = checkbox->res->wnd_text_color; 218 210 fmt.halign = gfx_halign_left; 219 211 fmt.valign = gfx_valign_center;
Note:
See TracChangeset
for help on using the changeset viewer.