Changes in uspace/lib/ui/src/paint.c [06176e1:35cffea] in mainline
- File:
-
- 1 edited
-
uspace/lib/ui/src/paint.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/paint.c
r06176e1 r35cffea 529 529 } 530 530 531 /** Paint minimize icon.532 *533 * @param resource UI resource534 * @param pos Center position535 * @param w Icon width536 * @param h Icon height537 * @return EOK on success or an error code538 */539 errno_t ui_paint_minicon(ui_resource_t *resource, gfx_coord2_t *pos,540 gfx_coord_t w, gfx_coord_t h)541 {542 gfx_rect_t rect;543 errno_t rc;544 545 rc = gfx_set_color(resource->gc, resource->btn_text_color);546 if (rc != EOK)547 return rc;548 549 rect.p0.x = pos->x - w / 2;550 rect.p0.y = pos->y + h / 2 - 2;551 rect.p1.x = rect.p0.x + w;552 rect.p1.y = rect.p0.y + 2;553 rc = gfx_fill_rect(resource->gc, &rect);554 if (rc != EOK)555 return rc;556 557 return EOK;558 }559 560 531 /** Paint maximize icon. 561 532 * … … 951 922 tfmt.color = fmt->color; 952 923 tfmt.halign = fmt->halign; 953 tfmt. width = fmt->width;924 tfmt.justify_width = fmt->justify_width; 954 925 tfmt.valign = fmt->valign; 955 926 tfmt.underline = false;
Note:
See TracChangeset
for help on using the changeset viewer.
