mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 08:30:49 +00:00
Fixed missing some columns in transparency rendering
This commit is contained in:
parent
373b59b94f
commit
af02bafdeb
1 changed files with 3 additions and 1 deletions
|
@ -952,12 +952,14 @@ void R_DrawAddColumnP_RGBA_C()
|
||||||
int pitch = dc_pitch;
|
int pitch = dc_pitch;
|
||||||
BYTE *colormap = dc_colormap;
|
BYTE *colormap = dc_colormap;
|
||||||
|
|
||||||
|
uint32_t light = calc_light_multiplier(dc_light);
|
||||||
|
|
||||||
uint32_t fg_alpha = dc_srcalpha >> (FRACBITS - 8);
|
uint32_t fg_alpha = dc_srcalpha >> (FRACBITS - 8);
|
||||||
uint32_t bg_alpha = dc_destalpha >> (FRACBITS - 8);
|
uint32_t bg_alpha = dc_destalpha >> (FRACBITS - 8);
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
uint32_t fg = shade_pal_index(colormap[source[frac >> FRACBITS]], 0);
|
uint32_t fg = shade_pal_index(colormap[source[frac >> FRACBITS]], light);
|
||||||
|
|
||||||
uint32_t fg_red = (fg >> 16) & 0xff;
|
uint32_t fg_red = (fg >> 16) & 0xff;
|
||||||
uint32_t fg_green = (fg >> 8) & 0xff;
|
uint32_t fg_green = (fg >> 8) & 0xff;
|
||||||
|
|
Loading…
Reference in a new issue