summaryrefslogtreecommitdiff
path: root/src/screenshot.cpp
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-06-21 12:36:46 +0000
committertruelight <truelight@openttd.org>2007-06-21 12:36:46 +0000
commit3fa3d2e3653f351ba071152a4fa8ff19e31aa14f (patch)
tree32794e63c78972c1d43b56d335b38c6f56fad413 /src/screenshot.cpp
parent3b12e7b6b0a6b71a7b085c60c3b4ac4ffbe1dc44 (diff)
downloadopenttd-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/screenshot.cpp')
-rw-r--r--src/screenshot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screenshot.cpp b/src/screenshot.cpp
index c03eab59a..604d108dd 100644
--- a/src/screenshot.cpp
+++ b/src/screenshot.cpp
@@ -485,7 +485,7 @@ static void CurrentScreenCallback(void *userdata, void *buf, uint y, uint pitch,
{
Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter();
void *src = blitter->MoveTo(_screen.dst_ptr, 0, y);
- blitter->CopyToBuffer(src, buf, _screen.width, n, pitch);
+ blitter->CopyImageToBuffer(src, buf, _screen.width, n, pitch);
}
/* generate a large piece of the world */