mirror of https://github.com/encounter/SDL.git
Don't use "realloc" in comment so that it doesn't show up
This commit is contained in:
parent
b4aeaa30a1
commit
5a7a7ba570
|
@ -1227,7 +1227,7 @@ RLEAlphaSurface(SDL_Surface * surface)
|
||||||
surface->flags &= ~SDL_SIMD_ALIGNED;
|
surface->flags &= ~SDL_SIMD_ALIGNED;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* realloc the buffer to release unused memory */
|
/* reallocate the buffer to release unused memory */
|
||||||
{
|
{
|
||||||
Uint8 *p = SDL_realloc(rlebuf, dst - rlebuf);
|
Uint8 *p = SDL_realloc(rlebuf, dst - rlebuf);
|
||||||
if (!p)
|
if (!p)
|
||||||
|
@ -1391,9 +1391,9 @@ RLEColorkeySurface(SDL_Surface * surface)
|
||||||
surface->flags &= ~SDL_SIMD_ALIGNED;
|
surface->flags &= ~SDL_SIMD_ALIGNED;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* realloc the buffer to release unused memory */
|
/* reallocate the buffer to release unused memory */
|
||||||
{
|
{
|
||||||
/* If realloc returns NULL, the original block is left intact */
|
/* If SDL_realloc returns NULL, the original block is left intact */
|
||||||
Uint8 *p = SDL_realloc(rlebuf, dst - rlebuf);
|
Uint8 *p = SDL_realloc(rlebuf, dst - rlebuf);
|
||||||
if (!p)
|
if (!p)
|
||||||
p = rlebuf;
|
p = rlebuf;
|
||||||
|
|
Loading…
Reference in New Issue