Changes in uspace/lib/draw/source.c [071fefec:b3222a3] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/draw/source.c
r071fefec rb3222a3 45 45 source->color = PIXEL(0, 0, 0, 0); 46 46 source->texture = NULL; 47 source->texture_ tile = false;47 source->texture_extend = PIXELMAP_EXTEND_TRANSPARENT_BLACK; 48 48 49 49 source->alpha = PIXEL(255, 0, 0, 0); 50 50 source->mask = NULL; 51 source->mask_ tile = false;51 source->mask_extend = PIXELMAP_EXTEND_TRANSPARENT_BLACK; 52 52 } 53 53 … … 73 73 } 74 74 75 void source_set_texture(source_t *source, surface_t *texture, bool tile) 75 void source_set_texture(source_t *source, surface_t *texture, 76 pixelmap_extend_t extend) 76 77 { 77 78 source->texture = texture; 78 source->texture_ tile = tile;79 source->texture_extend = extend; 79 80 } 80 81 … … 84 85 } 85 86 86 void source_set_mask(source_t *source, surface_t *mask, bool tile) 87 void source_set_mask(source_t *source, surface_t *mask, 88 pixelmap_extend_t extend) 87 89 { 88 90 source->mask = mask; 89 source->mask_ tile = tile;91 source->mask_extend = extend; 90 92 } 91 93 … … 95 97 (source->alpha == (pixel_t) PIXEL(255, 0, 0, 0)) && 96 98 (source->texture != NULL) && 97 (source->texture_tile == false) &&98 99 (transform_is_fast(&source->transform))); 99 100 } … … 120 121 mask_pix = source->filter( 121 122 surface_pixmap_access(source->mask), 122 x, y, source->mask_ tile);123 x, y, source->mask_extend); 123 124 } else { 124 125 mask_pix = source->alpha; … … 133 134 texture_pix = source->filter( 134 135 surface_pixmap_access(source->texture), 135 x, y, source->texture_ tile);136 x, y, source->texture_extend); 136 137 } else { 137 138 texture_pix = source->color;
Note:
See TracChangeset
for help on using the changeset viewer.