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 | 4cd71ef4fe098486744d13643ea7cf77d938e5c8 (patch) | |
tree | 2a0bd663d5cf57d1410220f8083c018e6b10b0ac /src/blitter/blitter.hpp | |
parent | 37ee35df075d492f632588cf9fadd20e424e4305 (diff) | |
download | openttd-4cd71ef4fe098486744d13643ea7cf77d938e5c8.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() { } }; |