(svn r26969) -Fix (r26869): black palette didn't work very well with unmasked 32bpp sprites

This commit is contained in:
rubidium
2014-10-06 18:45:51 +00:00
parent e5a92d7093
commit 9c31ffd893
9 changed files with 82 additions and 3 deletions

View File

@@ -13,6 +13,7 @@
#include "../zoom_func.h"
#include "../settings_type.h"
#include "../core/math_func.hpp"
#include "../core/mem_func.hpp"
#include "8bpp_optimized.hpp"
#include "../safeguards.h"
@@ -96,6 +97,11 @@ void Blitter_8bppOptimized::Draw(Blitter::BlitterParams *bp, BlitterMode mode, Z
break;
}
case BM_BLACK_REMAP:
MemSetT(dst, 0, pixels);
dst += pixels;
break;
case BM_TRANSPARENT: {
const uint8 *remap = bp->remap;
src += pixels;
@@ -107,7 +113,7 @@ void Blitter_8bppOptimized::Draw(Blitter::BlitterParams *bp, BlitterMode mode, Z
}
default:
memcpy(dst, src, pixels);
MemCpyT(dst, src, pixels);
dst += pixels; src += pixels;
break;
}