diff options
author | alberth <alberth@openttd.org> | 2010-01-23 22:37:14 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-01-23 22:37:14 +0000 |
commit | b2f9b0ac43a7cf1d6bea1328f3c129912f998492 (patch) | |
tree | bc3e4b56a7bb8ae26e4b78df6ad4a3a62054c2b5 /src/blitter/32bpp_base.cpp | |
parent | d2fc24d61c10ee0adaf5d744390531d8c922a815 (diff) | |
download | openttd-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.cpp | 6 |
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); |