summaryrefslogtreecommitdiff
path: root/src/blitter/8bpp_slow.cpp
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-06-11 13:38:11 +0000
committertruelight <truelight@openttd.org>2007-06-11 13:38:11 +0000
commitbe0f5cf877bb2d7a74855f8988e50ca09624aabe (patch)
tree2a0bd663d5cf57d1410220f8083c018e6b10b0ac /src/blitter/8bpp_slow.cpp
parent9d570fa018a7c449853c113c9d2190e5246a8f09 (diff)
downloadopenttd-be0f5cf877bb2d7a74855f8988e50ca09624aabe.tar.xz
(svn r10096) -Fix r10092: freetype bypassed the Blitter::Encode, making fonts look weird
Diffstat (limited to 'src/blitter/8bpp_slow.cpp')
-rw-r--r--src/blitter/8bpp_slow.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/blitter/8bpp_slow.cpp b/src/blitter/8bpp_slow.cpp
index 99c43a4f5..ad83cff20 100644
--- a/src/blitter/8bpp_slow.cpp
+++ b/src/blitter/8bpp_slow.cpp
@@ -5,8 +5,6 @@
static FBlitter_8bppSimple iFBlitter_8bppSimple;
-extern void* AllocSprite(size_t);
-
void Blitter_8bppSimple::Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom)
{
const byte *src, *src_line;
@@ -46,10 +44,10 @@ void Blitter_8bppSimple::Draw(Blitter::BlitterParams *bp, BlitterMode mode, Zoom
}
}
-Sprite *Blitter_8bppSimple::Encode(SpriteLoader::Sprite *sprite)
+Sprite *Blitter_8bppSimple::Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator)
{
Sprite *dest_sprite;
- dest_sprite = (Sprite *)AllocSprite(sizeof(*dest_sprite) + sprite->height * sprite->width);
+ dest_sprite = (Sprite *)allocator(sizeof(*dest_sprite) + sprite->height * sprite->width);;
dest_sprite->height = sprite->height;
dest_sprite->width = sprite->width;