summaryrefslogtreecommitdiff
path: root/dix/pixmap.c
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2020-08-25 17:57:24 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2020-08-25 17:57:24 +0100
commitffb70dce4ec24d66d682a2ea3d2743f3eb384f95 (patch)
treee2b6a61164c23033f377fc32775a5cc596fa790a /dix/pixmap.c
parent8b3c91f306ad808a3c948cc57eb222a0e39edbda (diff)
parentafb77415e1fb862c322754230f63bb70fd596943 (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.c5
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);