mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
- fixed: add light diminishing support to rgb666 palette stencil drawers
This commit is contained in:
parent
211783c110
commit
62374cf3bc
1 changed files with 2 additions and 2 deletions
|
@ -1396,7 +1396,7 @@ namespace swrenderer
|
|||
int color = args.SolidColor();
|
||||
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 g = (palette[*dest].g * (255-val) + palette[color].g * val) >> 10;
|
||||
|
@ -1439,7 +1439,7 @@ namespace swrenderer
|
|||
int color = args.SolidColor();
|
||||
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 g = (palette[*dest].g * (255) + palette[color].g * val) >> 10;
|
||||
|
|
Loading…
Reference in a new issue