equal
deleted
inserted
replaced
6 #include "../gfx_func.h" |
6 #include "../gfx_func.h" |
7 #include "8bpp_base.hpp" |
7 #include "8bpp_base.hpp" |
8 |
8 |
9 void Blitter_8bppBase::DrawColorMappingRect(void *dst, int width, int height, int pal) |
9 void Blitter_8bppBase::DrawColorMappingRect(void *dst, int width, int height, int pal) |
10 { |
10 { |
11 const uint8 *ctab = GetNonSprite(pal) + 1; |
11 const uint8 *ctab = GetNonSprite(pal, ST_RECOLOUR) + 1; |
12 |
12 |
13 do { |
13 do { |
14 for (int i = 0; i != width; i++) *((uint8 *)dst + i) = ctab[((uint8 *)dst)[i]]; |
14 for (int i = 0; i != width; i++) *((uint8 *)dst + i) = ctab[((uint8 *)dst)[i]]; |
15 dst = (uint8 *)dst + _screen.pitch; |
15 dst = (uint8 *)dst + _screen.pitch; |
16 } while (--height); |
16 } while (--height); |