From c8e8911ef676f503ac5789d3fefac1278cdef971 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 2 Sep 2008 15:20:38 +0000 Subject: (svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites. --- src/blitter/8bpp_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/blitter/8bpp_base.cpp') diff --git a/src/blitter/8bpp_base.cpp b/src/blitter/8bpp_base.cpp index 78bb90f5e..4bdbfe2df 100644 --- a/src/blitter/8bpp_base.cpp +++ b/src/blitter/8bpp_base.cpp @@ -8,7 +8,7 @@ void Blitter_8bppBase::DrawColorMappingRect(void *dst, int width, int height, int pal) { - const uint8 *ctab = GetNonSprite(pal) + 1; + const uint8 *ctab = GetNonSprite(pal, ST_RECOLOUR) + 1; do { for (int i = 0; i != width; i++) *((uint8 *)dst + i) = ctab[((uint8 *)dst)[i]]; -- cgit v1.2.3-54-g00ecf