summaryrefslogtreecommitdiff
path: root/src/blitter/32bpp_base.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_base.cpp
parentd2fc24d61c10ee0adaf5d744390531d8c922a815 (diff)
downloadopenttd-b2f9b0ac43a7cf1d6bea1328f3c129912f998492.tar.xz
(svn r18907) -Cleanup: Smallmap was the last user of SetPixelIfEmpty().
Diffstat (limited to 'src/blitter/32bpp_base.cpp')
-rw-r--r--src/blitter/32bpp_base.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/blitter/32bpp_base.cpp b/src/blitter/32bpp_base.cpp
index a7d7e34a2..23b42fa63 100644
--- a/src/blitter/32bpp_base.cpp
+++ b/src/blitter/32bpp_base.cpp
@@ -22,12 +22,6 @@ void Blitter_32bppBase::SetPixel(void *video, int x, int y, uint8 colour)
*((uint32 *)video + x + y * _screen.pitch) = LookupColourInPalette(colour);
}
-void Blitter_32bppBase::SetPixelIfEmpty(void *video, int x, int y, uint8 colour)
-{
- uint32 *dst = (uint32 *)video + x + y * _screen.pitch;
- if (*dst == 0) *dst = LookupColourInPalette(colour);
-}
-
void Blitter_32bppBase::DrawRect(void *video, int width, int height, uint8 colour)
{
uint32 colour32 = LookupColourInPalette(colour);