Changeset 4583015 in mainline for uspace/lib/ui/src/paint.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/paint.c
r5c27e77 r4583015 402 402 403 403 gfx_text_fmt_init(&fmt); 404 fmt.font = resource->font; 404 405 fmt.color = color; 405 406 … … 427 428 428 429 pos = rect->p0; 429 rc = gfx_puttext( resource->font,&pos, &fmt, str);430 rc = gfx_puttext(&pos, &fmt, str); 430 431 if (rc != EOK) 431 432 goto error; … … 436 437 437 438 pos.x = rect->p0.x; 438 rc = gfx_puttext(resource->font, &pos, &fmt, 439 boxc->c[1][0]); 439 rc = gfx_puttext(&pos, &fmt, boxc->c[1][0]); 440 440 if (rc != EOK) 441 441 goto error; 442 442 443 443 pos.x = rect->p1.x - 1; 444 rc = gfx_puttext(resource->font, &pos, &fmt, 445 boxc->c[1][2]); 444 rc = gfx_puttext(&pos, &fmt, boxc->c[1][2]); 446 445 if (rc != EOK) 447 446 goto error; … … 464 463 pos.x = rect->p0.x; 465 464 pos.y = rect->p1.y - 1; 466 rc = gfx_puttext( resource->font,&pos, &fmt, str);465 rc = gfx_puttext(&pos, &fmt, str); 467 466 if (rc != EOK) 468 467 goto error; … … 519 518 520 519 gfx_text_fmt_init(&fmt); 520 fmt.font = resource->font; 521 521 fmt.color = color; 522 522 … … 542 542 543 543 pos = rect->p0; 544 rc = gfx_puttext( resource->font,&pos, &fmt, str);544 rc = gfx_puttext(&pos, &fmt, str); 545 545 if (rc != EOK) 546 546 goto error;
Note:
See TracChangeset
for help on using the changeset viewer.