summaryrefslogtreecommitdiff
path: root/src/blitter/32bpp_anim.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-01-23 22:37:14 +0000
committeralberth <alberth@openttd.org>2010-01-23 22:37:14 +0000
commitb2f9b0ac43a7cf1d6bea1328f3c129912f998492 (patch)
treebc3e4b56a7bb8ae26e4b78df6ad4a3a62054c2b5 /src/blitter/32bpp_anim.cpp
parentd2fc24d61c10ee0adaf5d744390531d8c922a815 (diff)
downloadopenttd-b2f9b0ac43a7cf1d6bea1328f3c129912f998492.tar.xz
(svn r18907) -Cleanup: Smallmap was the last user of SetPixelIfEmpty().
Diffstat (limited to 'src/blitter/32bpp_anim.cpp')
-rw-r--r--src/blitter/32bpp_anim.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/blitter/32bpp_anim.cpp b/src/blitter/32bpp_anim.cpp
index cc6dfa0bf..29c0a95ed 100644
--- a/src/blitter/32bpp_anim.cpp
+++ b/src/blitter/32bpp_anim.cpp
@@ -261,17 +261,6 @@ void Blitter_32bppAnim::SetPixel(void *video, int x, int y, uint8 colour)
this->anim_buf[((uint32 *)video - (uint32 *)_screen.dst_ptr) + x + y * this->anim_buf_width] = colour;
}
-void Blitter_32bppAnim::SetPixelIfEmpty(void *video, int x, int y, uint8 colour)
-{
- uint32 *dst = (uint32 *)video + x + y * _screen.pitch;
- if (*dst == 0) {
- *dst = LookupColourInPalette(colour);
- /* Set the colour in the anim-buffer too, if we are rendering to the screen */
- if (_screen_disable_anim) return;
- this->anim_buf[((uint32 *)video - (uint32 *)_screen.dst_ptr) + x + y * this->anim_buf_width] = colour;
- }
-}
-
void Blitter_32bppAnim::DrawRect(void *video, int width, int height, uint8 colour)
{
if (_screen_disable_anim) {