Simplify drawer code by creating loop iterators
Fixed blending bug
This commit is contained in:
parent
7a0c801a18
commit
698b5f3db1
11 changed files with 1142 additions and 2676 deletions
|
|
@ -514,8 +514,8 @@ void R_MapColoredPlane_rgba(int y, int x1)
|
|||
{
|
||||
uint32_t *dest = ylookup[y] + x1 + (uint32_t*)dc_destorg;
|
||||
int count = (spanend[y] - x1 + 1);
|
||||
uint32_t light = calc_light_multiplier(ds_light);
|
||||
uint32_t color = shade_pal_index_simple(ds_color, light);
|
||||
uint32_t light = LightBgra::calc_light_multiplier(ds_light);
|
||||
uint32_t color = LightBgra::shade_pal_index_simple(ds_color, light);
|
||||
for (int i = 0; i < count; i++)
|
||||
dest[i] = color;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue