mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-01 22:03:09 +00:00
glamor: Silent compilation warnings due to some deprecated APIs.
those xcalloc/xfree/xalloc/XNFprintf/... are deprecated. Replace then with the new one. And fix some other minor problems.
This commit is contained in:
parent
e3295d4106
commit
c97d4533f2
12 changed files with 56 additions and 87 deletions
|
|
@ -61,7 +61,7 @@ glamor_get_spans(DrawablePtr drawable,
|
|||
|
||||
switch (drawable->depth) {
|
||||
case 1:
|
||||
temp_dst = xalloc(wmax);
|
||||
temp_dst = malloc(wmax);
|
||||
format = GL_ALPHA;
|
||||
type = GL_UNSIGNED_BYTE;
|
||||
readpixels_dst = temp_dst;
|
||||
|
|
@ -111,7 +111,7 @@ glamor_get_spans(DrawablePtr drawable,
|
|||
readpixels_dst += PixmapBytePad(widths[i], drawable->depth);
|
||||
}
|
||||
}
|
||||
xfree(temp_dst);
|
||||
free(temp_dst);
|
||||
return;
|
||||
|
||||
fail:
|
||||
|
|
|
|||
Loading…
Reference in a new issue