gpu-low impact bugfix to coloreffect up/down. just a tweak to the previous re-engineering which seems to still be holding up.

This commit is contained in:
zeromus 2013-09-14 18:22:33 +00:00
parent 24c2460715
commit 07a3cd6483
1 changed files with 10 additions and 1 deletions

View File

@ -688,7 +688,16 @@ static FORCEINLINE void _master_setFinalOBJColor(GPU *gpu, u8 *dst, u16 color, u
BlendFunc selectedFunc = NoBlend;
//if normal BLDCNT layer target conditions are met, then we can use the BLDCNT-specified color effect
if(firstTargetSatisfied && secondTargetSatisfied && windowEffectSatisfied) selectedFunc = FUNC;
if(FUNC == Blend)
{
//blending requires first and second target screens to be satisfied, as well as the window
if(firstTargetSatisfied && secondTargetSatisfied && windowEffectSatisfied) selectedFunc = FUNC;
}
else
{
//brightness up and down requires only the first target screen to be satisfied
if(firstTargetSatisfied && windowEffectSatisfied) selectedFunc = FUNC;
}
switch(selectedFunc)
{