- fixed: add light diminishing support to rgb666 palette stencil drawers

This commit is contained in:
Rachael Alexanderson 2017-06-04 12:25:01 -04:00
parent 211783c110
commit 62374cf3bc
1 changed files with 2 additions and 2 deletions

View File

@ -1396,7 +1396,7 @@ namespace swrenderer
int color = args.SolidColor(); int color = args.SolidColor();
do do
{ {
uint32_t val = source[frac >> FRACBITS]; uint32_t val = colormap[source[frac >> FRACBITS]] << 2;
int r = (palette[*dest].r * (255-val) + palette[color].r * val) >> 10; int r = (palette[*dest].r * (255-val) + palette[color].r * val) >> 10;
int g = (palette[*dest].g * (255-val) + palette[color].g * val) >> 10; int g = (palette[*dest].g * (255-val) + palette[color].g * val) >> 10;
@ -1439,7 +1439,7 @@ namespace swrenderer
int color = args.SolidColor(); int color = args.SolidColor();
do do
{ {
uint32_t val = source[frac >> FRACBITS]; uint32_t val = colormap[source[frac >> FRACBITS]] << 2;
int r = (palette[*dest].r * (255) + palette[color].r * val) >> 10; int r = (palette[*dest].r * (255) + palette[color].r * val) >> 10;
int g = (palette[*dest].g * (255) + palette[color].g * val) >> 10; int g = (palette[*dest].g * (255) + palette[color].g * val) >> 10;