Skip to content

Commit

Permalink
Fix hit test for transparent fills
Browse files Browse the repository at this point in the history
(I know this causes the elements to be rendered. Since draw calls are cached, I couldn't switch based on whether we are hit testing. Is there some way to flag the element as "mIsEmpty" and skip rendering later?)

This fix is important for certain games
  • Loading branch information
jgranick committed Apr 2, 2013
1 parent 58ee3fa commit 6fe6fd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project/common/Hardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ class HardwareBuilder
GraphicsSolidFill *solid = inFill->AsSolidFill();
if (solid)
{
if (solid -> mRGB.a == 0)
return false;
//if (solid -> mRGB.a == 0)
//return false;
mElement.mColour = solid->mRGB.ToInt();
}
else
Expand Down

0 comments on commit 6fe6fd1

Please sign in to comment.