Changeset 4583015 in mainline for uspace/lib/ui/src/pbutton.c
- Timestamp:
- 2022-03-07T16:10:44Z (3 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ca2680d
- Parents:
- 5c27e77
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/pbutton.c
r5c27e77 r4583015 307 307 308 308 gfx_text_fmt_init(&fmt); 309 fmt.font = pbutton->res->font; 309 310 fmt.color = pbutton->res->btn_text_color; 310 311 fmt.halign = gfx_halign_center; 311 312 fmt.valign = gfx_valign_center; 312 313 313 rc = gfx_puttext( pbutton->res->font,&pos, &fmt, pbutton->caption);314 rc = gfx_puttext(&pos, &fmt, pbutton->caption); 314 315 if (rc != EOK) 315 316 goto error; … … 379 380 380 381 gfx_text_fmt_init(&fmt); 382 fmt.font = pbutton->res->font; 381 383 fmt.color = pbutton->res->btn_text_color; 382 384 fmt.halign = gfx_halign_center; 383 385 fmt.valign = gfx_valign_center; 384 386 385 rc = gfx_puttext( pbutton->res->font,&pos, &fmt, pbutton->caption);387 rc = gfx_puttext(&pos, &fmt, pbutton->caption); 386 388 if (rc != EOK) 387 389 goto error;
Note:
See TracChangeset
for help on using the changeset viewer.