Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/paint.c

    r06176e1 r35cffea  
    529529}
    530530
    531 /** Paint minimize icon.
    532  *
    533  * @param resource UI resource
    534  * @param pos Center position
    535  * @param w Icon width
    536  * @param h Icon height
    537  * @return EOK on success or an error code
    538  */
    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 
    560531/** Paint maximize icon.
    561532 *
     
    951922        tfmt.color = fmt->color;
    952923        tfmt.halign = fmt->halign;
    953         tfmt.width = fmt->width;
     924        tfmt.justify_width = fmt->justify_width;
    954925        tfmt.valign = fmt->valign;
    955926        tfmt.underline = false;
Note: See TracChangeset for help on using the changeset viewer.