summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-10 22:26:28 +0000
committertron <tron@openttd.org>2005-02-10 22:26:28 +0000
commit33cf096b03091863d5c7e90086ddf1155ce67c36 (patch)
treee814d5f6049f30651ade4ab2762b24e651e09659
parent9031e0369eeb2c11c5a4a671fb812645b2ea69a2 (diff)
downloadopenttd-33cf096b03091863d5c7e90086ddf1155ce67c36.tar.xz
(svn r1856) Make GfxInitSpriteMem() static, because it's only used withing spritecache.c
-rw-r--r--spritecache.c2
-rw-r--r--spritecache.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/spritecache.c b/spritecache.c
index bc00feebf..899242d72 100644
--- a/spritecache.c
+++ b/spritecache.c
@@ -951,7 +951,7 @@ static void LoadSpriteTables(void)
_compact_cache_counter = 0;
}
-void GfxInitSpriteMem(byte *ptr, uint32 size)
+static void GfxInitSpriteMem(byte *ptr, uint32 size)
{
// initialize sprite cache heap
_spritecache_ptr = ptr;
diff --git a/spritecache.h b/spritecache.h
index b4becda45..f1c0a80f7 100644
--- a/spritecache.h
+++ b/spritecache.h
@@ -20,7 +20,6 @@ const SpriteDimension *GetSpriteDimension(SpriteID sprite);
Sprite *GetSprite(SpriteID sprite);
byte *GetNonSprite(SpriteID sprite);
-void GfxInitSpriteMem(byte *ptr, uint32 size);
void GfxLoadSprites(void);
void IncreaseSpriteLRU(void);