mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-24 21:31:46 +00:00
Clear pixel color if it was transparent
This commit is contained in:
parent
46aebb7638
commit
e73cc7962f
1 changed files with 3 additions and 1 deletions
|
@ -1192,13 +1192,15 @@ void V_DrawIntoPatch(patch_t *dest_patch, patch_t *src_patch, fixed_t x, fixed_t
|
|||
continue;
|
||||
|
||||
size_t position = (dest_x * dest_patch->height) + dest_y;
|
||||
UINT8 *dest = &dest_patch->pixels[position];
|
||||
|
||||
if (!in_bit_array(dpatch->pixels_opaque, position))
|
||||
{
|
||||
set_bit_array(dpatch->pixels_opaque, position);
|
||||
dpatch->update_columns = true;
|
||||
*dest = 0;
|
||||
}
|
||||
|
||||
UINT8 *dest = &dest_patch->pixels[position];
|
||||
*dest = patchdrawfunc(dest, source, ofs);
|
||||
|
||||
dpatch->is_dirty = true;
|
||||
|
|
Loading…
Reference in a new issue