Fix source pictures getting random transforms after 2d6a8f668342a5190cdf43b5.

*xoff and *yoff were uninitialized for source-only pictures.x

Signed-off-by: Pierre-Loup A. Griffais <pgriffais@nvidia.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Pierre-Loup A. Griffais 2010-01-27 14:03:03 -08:00 committed by Keith Packard
parent c339515867
commit a6bd5d2e48

View File

@ -452,6 +452,7 @@ image_from_pict (PicturePtr pict, Bool has_clip, int *xoff, int *yoff)
else if (sp->type == SourcePictTypeConical)
image = create_conical_gradient_image (gradient);
}
*xoff = *yoff = 0;
}
if (image)