Skip to content

Commit

Permalink
Temp fix for masked actor rendering (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed Feb 19, 2018
1 parent d20b0ac commit 7fe51f2
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/cdogs/draw/draw_actor.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,17 @@ void DrawActorPics(const ActorPics *pics, const struct vec2i pos)
}
else if (pics->Mask != NULL)
{
PicRender(
pic, gGraphicsDevice.gameWindow.renderer, drawPos,
*pics->Mask);
// Mask a white version of the actor
// TODO: texture rendering
const CharColors colors = {
*pics->Mask,
*pics->Mask,
*pics->Mask,
*pics->Mask,
*pics->Mask
};
BlitCharMultichannel(
&gGraphicsDevice, pic, drawPos, &colors);
}
else
{
Expand Down

0 comments on commit 7fe51f2

Please sign in to comment.