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 | d614cec205a2578144935152a5c5b9e1e3c0f93d (patch) | |
tree | 32794e63c78972c1d43b56d335b38c6f56fad413 /src/blitter/8bpp_base.hpp | |
parent | 36afc46e2a06dc1f9915e1e0d820899da0b2d2b9 (diff) | |
download | openttd-d614cec205a2578144935152a5c5b9e1e3c0f93d.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/8bpp_base.hpp')
-rw-r--r-- | src/blitter/8bpp_base.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/blitter/8bpp_base.hpp b/src/blitter/8bpp_base.hpp index f189ffdcf..b437a080b 100644 --- a/src/blitter/8bpp_base.hpp +++ b/src/blitter/8bpp_base.hpp @@ -18,9 +18,9 @@ public: /* virtual */ void SetPixelIfEmpty(void *video, int x, int y, uint8 color); /* virtual */ void DrawRect(void *video, int width, int height, uint8 color); /* virtual */ void DrawLine(void *video, int x, int y, int x2, int y2, int screen_width, int screen_height, uint8 color); - /* virtual */ void CopyFromBuffer(void *video, const void *src, int width, int height, int src_pitch); - /* virtual */ void CopyToBuffer(const void *video, void *dst, int width, int height, int dst_pitch); - /* virtual */ void MoveBuffer(void *video_dst, const void *video_src, int width, int height); + /* 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 CopyImageToBuffer(const void *video, void *dst, int width, int height, int dst_pitch); /* virtual */ void ScrollBuffer(void *video, int &left, int &top, int &width, int &height, int scroll_x, int scroll_y); /* virtual */ int BufferSize(int width, int height); /* virtual */ void PaletteAnimate(uint start, uint count); |