mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
Add support for gradients and solid fills to Render.
Changed the semantics of the Convolution filter a bit. It now doesn't try
to normalize the filter values but leaves this to the client. This
gives more reasonable behaviour in the limit where the filter
parameters sum up to 0.
This commit is contained in:
@@ -296,7 +296,7 @@ miClipPictureSrc (RegionPtr pRegion,
|
||||
int dy)
|
||||
{
|
||||
/* XXX what to do with clipping from transformed pictures? */
|
||||
if (pPicture->transform)
|
||||
if (pPicture->transform || !pPicture->pDrawable)
|
||||
return TRUE;
|
||||
if (pPicture->repeat)
|
||||
{
|
||||
@@ -331,7 +331,12 @@ miCompositeSourceValidate (PicturePtr pPicture,
|
||||
CARD16 height)
|
||||
{
|
||||
DrawablePtr pDrawable = pPicture->pDrawable;
|
||||
ScreenPtr pScreen = pDrawable->pScreen;
|
||||
ScreenPtr pScreen;
|
||||
|
||||
if (!pDrawable)
|
||||
return;
|
||||
|
||||
pScreen = pDrawable->pScreen;
|
||||
|
||||
if (pScreen->SourceValidate)
|
||||
{
|
||||
@@ -521,8 +526,13 @@ miFillColor (CARD32 pixel, int bits)
|
||||
Bool
|
||||
miIsSolidAlpha (PicturePtr pSrc)
|
||||
{
|
||||
ScreenPtr pScreen = pSrc->pDrawable->pScreen;
|
||||
ScreenPtr pScreen;
|
||||
char line[1];
|
||||
|
||||
if (!pSrc->pDrawable)
|
||||
return FALSE;
|
||||
|
||||
pScreen = pSrc->pDrawable->pScreen;
|
||||
|
||||
/* Alpha-only */
|
||||
if (PICT_FORMAT_TYPE (pSrc->format) != PICT_TYPE_A)
|
||||
|
||||
Reference in New Issue
Block a user