diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2020-08-25 17:57:24 +0100 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2020-08-25 17:57:24 +0100 |
commit | ffb70dce4ec24d66d682a2ea3d2743f3eb384f95 (patch) | |
tree | e2b6a61164c23033f377fc32775a5cc596fa790a /dix/pixmap.c | |
parent | 8b3c91f306ad808a3c948cc57eb222a0e39edbda (diff) | |
parent | afb77415e1fb862c322754230f63bb70fd596943 (diff) |
Merge tag 'xorg-server-1.20.9' into cygwin-release-1.20
xorg-server-1.20.9
Diffstat (limited to 'dix/pixmap.c')
-rw-r--r-- | dix/pixmap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dix/pixmap.c b/dix/pixmap.c index 81ac5e2d8..061bd421d 100644 --- a/dix/pixmap.c +++ b/dix/pixmap.c @@ -32,6 +32,7 @@ from The Open Group. #include <X11/X.h> #include "scrnintstr.h" +#include "mi.h" #include "misc.h" #include "os.h" #include "windowstr.h" @@ -116,7 +117,7 @@ AllocatePixmap(ScreenPtr pScreen, int pixDataSize) if (pScreen->totalPixmapSize > ((size_t) - 1) - pixDataSize) return NullPixmap; - pPixmap = malloc(pScreen->totalPixmapSize + pixDataSize); + pPixmap = calloc(1, pScreen->totalPixmapSize + pixDataSize); if (!pPixmap) return NullPixmap; @@ -395,7 +396,7 @@ Bool PixmapSyncDirtyHelper(PixmapDirtyUpdatePtr dirty) * leaves the software cursor in place */ SourceValidate = pScreen->SourceValidate; - pScreen->SourceValidate = NULL; + pScreen->SourceValidate = miSourceValidate; RegionTranslate(&pixregion, dirty->x, dirty->y); RegionIntersect(&pixregion, &pixregion, region); |