diff options
author | truelight <truelight@openttd.org> | 2007-06-21 12:36:46 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-06-21 12:36:46 +0000 |
commit | 3fa3d2e3653f351ba071152a4fa8ff19e31aa14f (patch) | |
tree | 32794e63c78972c1d43b56d335b38c6f56fad413 /src/blitter/32bpp_anim.hpp | |
parent | 3b12e7b6b0a6b71a7b085c60c3b4ac4ffbe1dc44 (diff) | |
download | openttd-3fa3d2e3653f351ba071152a4fa8ff19e31aa14f.tar.xz |
(svn r10241) -Codechange: CopyToBuffer now produces a buffer that is unreadable from outside the blitter, so the blitter can store anything he likes
-Codechange: added CopyImageToBuffer, which produces a readable buffer for screenshots
-Fix: 32bpp-anim now holds animation on transparent objects to avoid strange graphical effects
-Fix: 32bpp-anim now works correct on mouse-movement (it holds the palette animation correctly)
Diffstat (limited to 'src/blitter/32bpp_anim.hpp')
-rw-r--r-- | src/blitter/32bpp_anim.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/blitter/32bpp_anim.hpp b/src/blitter/32bpp_anim.hpp index 6f9e2da48..426434d9b 100644 --- a/src/blitter/32bpp_anim.hpp +++ b/src/blitter/32bpp_anim.hpp @@ -22,9 +22,12 @@ public: {} /* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom); + /* virtual */ void DrawColorMappingRect(void *dst, int width, int height, int pal); /* virtual */ void SetPixel(void *video, int x, int y, uint8 color); /* virtual */ void SetPixelIfEmpty(void *video, int x, int y, uint8 color); /* virtual */ void DrawRect(void *video, int width, int height, uint8 color); + /* virtual */ void CopyFromBuffer(void *video, const void *src, int width, int height); + /* virtual */ void CopyToBuffer(const void *video, void *dst, int width, int height); /* virtual */ void ScrollBuffer(void *video, int &left, int &top, int &width, int &height, int scroll_x, int scroll_y); /* virtual */ void PaletteAnimate(uint start, uint count); /* virtual */ Blitter::PaletteAnimation UsePaletteAnimation(); |