diff options
author | skidd13 <skidd13@openttd.org> | 2007-11-19 20:40:14 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2007-11-19 20:40:14 +0000 |
commit | 58bb5c752568f8f9a1cb4d9533268d0ecad34e12 (patch) | |
tree | 6112141c4dddc87df3ac0db557f34623319c73e0 /src/spritecache.cpp | |
parent | d076ea8697a61a4d7783bd6e1b5c7f12ecc2ec83 (diff) | |
download | openttd-58bb5c752568f8f9a1cb4d9533268d0ecad34e12.tar.xz |
(svn r11480) -Codechange: Rename the function ALIGN fitting to the naming style
This fixes also FS#1450
Diffstat (limited to 'src/spritecache.cpp')
-rw-r--r-- | src/spritecache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spritecache.cpp b/src/spritecache.cpp index 81932e86c..c303629d0 100644 --- a/src/spritecache.cpp +++ b/src/spritecache.cpp @@ -47,7 +47,7 @@ static SpriteCache *AllocateSpriteCache(uint index) { if (index >= _spritecache_items) { /* Add another 1024 items to the 'pool' */ - uint items = ALIGN(index + 1, 1024); + uint items = Align(index + 1, 1024); DEBUG(sprite, 4, "Increasing sprite cache to %d items (%d bytes)", items, items * sizeof(*_spritecache)); @@ -436,7 +436,7 @@ void* AllocSprite(size_t mem_req) /* Align this to an uint32 boundary. This also makes sure that the 2 least * bits are not used, so we could use those for other things. */ - mem_req = ALIGN(mem_req, sizeof(uint32)); + mem_req = Align(mem_req, sizeof(uint32)); for (;;) { MemBlock* s; |