File diff r24899:e3ddcc7e16c9 → r24900:959a621b6aa9
src/spritecache.cpp
Show inline comments
 
@@ -809,6 +809,14 @@ static void *AllocSprite(size_t mem_req)
 
}
 

	
 
/**
 
 * Sprite allocator simply using malloc.
 
 */
 
void *SimpleSpriteAlloc(size_t size)
 
{
 
	return MallocT<byte>(size);
 
}
 

	
 
/**
 
 * Handles the case when a sprite of different type is requested than is present in the SpriteCache.
 
 * For ST_FONT sprites, it is normal. In other cases, default sprite is loaded instead.
 
 * @param sprite ID of loaded sprite