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/blitter.hpp | |
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/blitter.hpp')
-rw-r--r-- | src/blitter/blitter.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/blitter/blitter.hpp b/src/blitter/blitter.hpp index 4920da426..1114dbf58 100644 --- a/src/blitter/blitter.hpp +++ b/src/blitter/blitter.hpp @@ -35,6 +35,8 @@ public: int pitch; ///< The pitch of the destination buffer }; + typedef void *AllocatorProc(size_t size); + /** * Get the screen depth this blitter works for. * This is either: 8, 16, 24 or 32. @@ -49,7 +51,7 @@ public: /** * Convert a sprite from the loader to our own format. */ - virtual Sprite *Encode(SpriteLoader::Sprite *sprite) = 0; + virtual Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator) = 0; virtual ~Blitter() { } }; |