Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/draw/source.c

    rb3222a3 r071fefec  
    4545        source->color = PIXEL(0, 0, 0, 0);
    4646        source->texture = NULL;
    47         source->texture_extend = PIXELMAP_EXTEND_TRANSPARENT_BLACK;
     47        source->texture_tile = false;
    4848
    4949        source->alpha = PIXEL(255, 0, 0, 0);
    5050        source->mask = NULL;
    51         source->mask_extend = PIXELMAP_EXTEND_TRANSPARENT_BLACK;
     51        source->mask_tile = false;
    5252}
    5353
     
    7373}
    7474
    75 void source_set_texture(source_t *source, surface_t *texture,
    76     pixelmap_extend_t extend)
     75void source_set_texture(source_t *source, surface_t *texture, bool tile)
    7776{
    7877        source->texture = texture;
    79         source->texture_extend = extend;
     78        source->texture_tile = tile;
    8079}
    8180
     
    8584}
    8685
    87 void source_set_mask(source_t *source, surface_t *mask,
    88     pixelmap_extend_t extend)
     86void source_set_mask(source_t *source, surface_t *mask, bool tile)
    8987{
    9088        source->mask = mask;
    91         source->mask_extend = extend;
     89        source->mask_tile = tile;
    9290}
    9391
     
    9795            (source->alpha == (pixel_t) PIXEL(255, 0, 0, 0)) &&
    9896            (source->texture != NULL) &&
     97            (source->texture_tile == false) &&
    9998            (transform_is_fast(&source->transform)));
    10099}
     
    121120                mask_pix = source->filter(
    122121                    surface_pixmap_access(source->mask),
    123                     x, y, source->mask_extend);
     122                    x, y, source->mask_tile);
    124123        } else {
    125124                mask_pix = source->alpha;
     
    134133                texture_pix = source->filter(
    135134                    surface_pixmap_access(source->texture),
    136                     x, y, source->texture_extend);
     135                    x, y, source->texture_tile);
    137136        } else {
    138137                texture_pix = source->color;
Note: See TracChangeset for help on using the changeset viewer.