Ignore:
File:
1 edited

Legend:

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

    rf698054 r071fefec  
    9292bool source_is_fast(source_t *source)
    9393{
    94         return (source->mask == NULL)
    95             && (source->alpha == (pixel_t) PIXEL(255, 0, 0, 0))
    96             && (source->texture != NULL)
    97             && (source->texture_tile == false)
    98             && transform_is_fast(&source->transform);
     94        return ((source->mask == NULL) &&
     95            (source->alpha == (pixel_t) PIXEL(255, 0, 0, 0)) &&
     96            (source->texture != NULL) &&
     97            (source->texture_tile == false) &&
     98            (transform_is_fast(&source->transform)));
    9999}
    100100
     
    103103        assert(source_is_fast(source));
    104104
    105         long _x = (long) (x + source->transform.m[0][2]);
    106         long _y = (long) (y + source->transform.m[1][2]);
     105        long _x = (long) (x + source->transform.matrix[0][2]);
     106        long _y = (long) (y + source->transform.matrix[1][2]);
    107107
    108108        return pixelmap_pixel_at(
Note: See TracChangeset for help on using the changeset viewer.