pixman_fixed_32_32_t l;
pixman_fixed_48_16_t dx, dy;
double inc;
+ source_image_class_t class;
- source->class = SOURCE_IMAGE_CLASS_UNKNOWN;
+ class = SOURCE_IMAGE_CLASS_UNKNOWN;
if (source->common.transform)
{
source->common.transform->matrix[2][1] != 0 ||
source->common.transform->matrix[2][2] == 0)
{
- return source->class;
+ return class;
}
v.vector[0] = source->common.transform->matrix[0][1];
l = dx * dx + dy * dy;
if (l == 0)
- return source->class;
+ return class;
/*
* compute how much the input of the gradient walked changes
/* check that casting to integer would result in 0 */
if (-1 < inc && inc < 1)
- source->class = SOURCE_IMAGE_CLASS_HORIZONTAL;
+ class = SOURCE_IMAGE_CLASS_HORIZONTAL;
- return source->class;
+ return class;
}
static void
linear->p2 = *p2;
image->type = LINEAR;
- image->source.class = SOURCE_IMAGE_CLASS_UNKNOWN;
image->common.classify = linear_gradient_classify;
image->common.property_changed = linear_gradient_property_changed;
int width,
int height)
{
- return (image->source.class = SOURCE_IMAGE_CLASS_HORIZONTAL);
+ return SOURCE_IMAGE_CLASS_HORIZONTAL;
}
static void
img->solid.color_32 = color_to_uint32 (color);
img->solid.color_64 = color_to_uint64 (color);
- img->source.class = SOURCE_IMAGE_CLASS_UNKNOWN;
img->common.classify = solid_fill_classify;
img->common.property_changed = solid_fill_property_changed;