Changeset 4583015 in mainline for uspace/lib/ui/src/checkbox.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/checkbox.c
r5c27e77 r4583015 192 192 193 193 gfx_text_fmt_init(&fmt); 194 fmt.font = checkbox->res->font; 194 195 fmt.color = checkbox->res->entry_fg_color; 195 196 fmt.halign = gfx_halign_center; 196 197 fmt.valign = gfx_valign_center; 197 198 198 rc = gfx_puttext( checkbox->res->font,&box_center, &fmt, "X");199 rc = gfx_puttext(&box_center, &fmt, "X"); 199 200 if (rc != EOK) 200 201 goto error; … … 207 208 208 209 gfx_text_fmt_init(&fmt); 210 fmt.font = checkbox->res->font; 209 211 fmt.color = checkbox->res->wnd_text_color; 210 212 fmt.halign = gfx_halign_left; 211 213 fmt.valign = gfx_valign_center; 212 214 213 rc = gfx_puttext( checkbox->res->font,&pos, &fmt, checkbox->caption);215 rc = gfx_puttext(&pos, &fmt, checkbox->caption); 214 216 if (rc != EOK) 215 217 goto error; … … 244 246 245 247 gfx_text_fmt_init(&fmt); 248 fmt.font = checkbox->res->font; 246 249 fmt.color = depressed ? checkbox->res->entry_act_bg_color : 247 250 checkbox->res->wnd_text_color; … … 249 252 fmt.valign = gfx_valign_top; 250 253 251 rc = gfx_puttext(checkbox->res->font, &pos, &fmt, 252 checkbox->checked ? "[X]" : "[ ]"); 254 rc = gfx_puttext(&pos, &fmt, checkbox->checked ? "[X]" : "[ ]"); 253 255 if (rc != EOK) 254 256 goto error; … … 259 261 fmt.color = checkbox->res->wnd_text_color; 260 262 261 rc = gfx_puttext( checkbox->res->font,&pos, &fmt, checkbox->caption);263 rc = gfx_puttext(&pos, &fmt, checkbox->caption); 262 264 if (rc != EOK) 263 265 goto error;
Note:
See TracChangeset
for help on using the changeset viewer.