mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-06-19 15:58:26 +02:00
On second thought, revert that, it'll make large pixmaps painfully slow.
Need to just fix the callers.
This commit is contained in:
parent
4a44fe7c86
commit
c0e1959f28
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ AllocatePixmap(ScreenPtr pScreen, int pixDataSize)
|
|||
if (pScreen->totalPixmapSize > ((size_t)-1) - pixDataSize)
|
||||
return NullPixmap;
|
||||
|
||||
pPixmap = (PixmapPtr)xcalloc(1, pScreen->totalPixmapSize + pixDataSize);
|
||||
pPixmap = (PixmapPtr)xalloc(pScreen->totalPixmapSize + pixDataSize);
|
||||
if (!pPixmap)
|
||||
return NullPixmap;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue