mi: Add a default no-op miSourceValidate

Slightly simplifies the callers since they don't need to check for
non-NULL anymore.

I do extremely hate the workarounds here to suppress misprite taking the
cursor down though. Surely there's a better way.

Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
This commit is contained in:
Adam Jackson
2019-10-09 11:27:12 -04:00
committed by Adam Jackson
parent 89a9927b1e
commit ff310903f3
13 changed files with 34 additions and 34 deletions

View File

@@ -294,10 +294,8 @@ SourceValidateOnePicture(PicturePtr pPicture)
pScreen = pDrawable->pScreen;
if (pScreen->SourceValidate) {
pScreen->SourceValidate(pDrawable, 0, 0, pDrawable->width,
pDrawable->height, pPicture->subWindowMode);
}
pScreen->SourceValidate(pDrawable, 0, 0, pDrawable->width,
pDrawable->height, pPicture->subWindowMode);
}
void