Changeset 4583015 in mainline for uspace/lib/ui/src/rbutton.c
- Timestamp:
- 2022-03-07T16:10:44Z (2 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/rbutton.c
r5c27e77 r4583015 278 278 279 279 gfx_text_fmt_init(&fmt); 280 fmt.font = rbutton->group->res->font; 280 281 fmt.color = rbutton->group->res->wnd_text_color; 281 282 fmt.halign = gfx_halign_left; 282 283 fmt.valign = gfx_valign_center; 283 284 284 rc = gfx_puttext(rbutton->group->res->font, &pos, &fmt, 285 rbutton->caption); 285 rc = gfx_puttext(&pos, &fmt, rbutton->caption); 286 286 if (rc != EOK) 287 287 goto error; … … 316 316 317 317 gfx_text_fmt_init(&fmt); 318 fmt.font = rbutton->group->res->font; 318 319 fmt.color = depressed ? rbutton->group->res->entry_act_bg_color : 319 320 rbutton->group->res->wnd_text_color; … … 321 322 fmt.valign = gfx_valign_top; 322 323 323 rc = gfx_puttext( rbutton->group->res->font, &pos, &fmt,324 rbutton->group->selected == rbutton ?"(\u2022)" : "( )");324 rc = gfx_puttext(&pos, &fmt, rbutton->group->selected == rbutton ? 325 "(\u2022)" : "( )"); 325 326 if (rc != EOK) 326 327 goto error; … … 332 333 fmt.color = rbutton->group->res->wnd_text_color; 333 334 334 rc = gfx_puttext(rbutton->group->res->font, &pos, &fmt, 335 rbutton->caption); 335 rc = gfx_puttext(&pos, &fmt, rbutton->caption); 336 336 if (rc != EOK) 337 337 goto error;
Note:
See TracChangeset
for help on using the changeset viewer.