diff options
author | smatz <smatz@openttd.org> | 2008-06-17 17:25:22 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-06-17 17:25:22 +0000 |
commit | 4e2e07874345f45bd0c640f94c73dfe9dafa4956 (patch) | |
tree | 9b850fb11338018338cebc973ce92041435aaeb3 /src/blitter/8bpp_optimized.hpp | |
parent | 4bbe69f881725a0066e7b3333368c229c4fa2d94 (diff) | |
download | openttd-4e2e07874345f45bd0c640f94c73dfe9dafa4956.tar.xz |
(svn r13551) -Codechange: store offsets to different zoom levels in a distinguished struct instead in the data stream for 8bpp-optimized
Diffstat (limited to 'src/blitter/8bpp_optimized.hpp')
-rw-r--r-- | src/blitter/8bpp_optimized.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/blitter/8bpp_optimized.hpp b/src/blitter/8bpp_optimized.hpp index d377b522a..85a7b06ad 100644 --- a/src/blitter/8bpp_optimized.hpp +++ b/src/blitter/8bpp_optimized.hpp @@ -10,6 +10,11 @@ class Blitter_8bppOptimized : public Blitter_8bppBase { public: + struct SpriteData { + uint32 offset[ZOOM_LVL_COUNT]; ///< offsets (from .data) to streams for different zoom levels + byte data[VARARRAY_SIZE]; ///< data, all zoomlevels + }; + /* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom); /* virtual */ Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator); |