diff options
author | glx <glx@openttd.org> | 2008-08-15 22:06:58 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-08-15 22:06:58 +0000 |
commit | c10691faffc9d08b6342b18c3be6f27e659fb43e (patch) | |
tree | eaf62e145b2293b076052608efe28f50ee6f32d7 /src/blitter/base.hpp | |
parent | 7672cd43d5c53a97ede3c9bc434ebca28f84bb23 (diff) | |
download | openttd-c10691faffc9d08b6342b18c3be6f27e659fb43e.tar.xz |
(svn r14080) -Fix (r14052): assert triggered when drawing chat window with 32bpp-anim blitter (backup buffer was too small)
Diffstat (limited to 'src/blitter/base.hpp')
-rw-r--r-- | src/blitter/base.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/blitter/base.hpp b/src/blitter/base.hpp index 6a4e4196a..c05f21a5d 100644 --- a/src/blitter/base.hpp +++ b/src/blitter/base.hpp @@ -183,10 +183,15 @@ public: virtual Blitter::PaletteAnimation UsePaletteAnimation() = 0; /** - * Get the naem of the blitter, the same as the Factory-instance returns. + * Get the name of the blitter, the same as the Factory-instance returns. */ virtual const char *GetName() = 0; + /** + * Get how many bytes are needed to store a pixel. + */ + virtual int GetBytesPerPixel() = 0; + virtual ~Blitter() { } }; |