diff options
author | truelight <truelight@openttd.org> | 2007-06-11 13:38:11 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-06-11 13:38:11 +0000 |
commit | be0f5cf877bb2d7a74855f8988e50ca09624aabe (patch) | |
tree | 2a0bd663d5cf57d1410220f8083c018e6b10b0ac /src/blitter/8bpp_slow.cpp | |
parent | 9d570fa018a7c449853c113c9d2190e5246a8f09 (diff) | |
download | openttd-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.cpp | 6 |
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; |