Changeset b433f68 in mainline for uspace/lib/ui/src/pbutton.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/pbutton.c
rfe40b67 rb433f68 269 269 goto error; 270 270 271 rc = gfx_set_color(pbutton->res->gc, pbutton->res->btn_text_color);272 if (rc != EOK)273 goto error;274 275 271 /* Center of button rectangle */ 276 272 pos.x = (rect.p0.x + rect.p1.x) / 2; … … 283 279 284 280 gfx_text_fmt_init(&fmt); 281 fmt.color = pbutton->res->btn_text_color; 285 282 fmt.halign = gfx_halign_center; 286 283 fmt.valign = gfx_valign_center;
Note:
See TracChangeset
for help on using the changeset viewer.