videoCommon: also reset logicOp on mode switch
This commit is contained in:
parent
4146e1f3d6
commit
3ec9f9b64a
|
@ -200,19 +200,19 @@ void BPWritten(const BPCmd& bp)
|
||||||
bpmem.blendmode.dstfactor, bpmem.blendmode.srcfactor, bpmem.blendmode.subtract, bpmem.blendmode.logicmode);
|
bpmem.blendmode.dstfactor, bpmem.blendmode.srcfactor, bpmem.blendmode.subtract, bpmem.blendmode.logicmode);
|
||||||
|
|
||||||
// Set LogicOp Blending Mode
|
// Set LogicOp Blending Mode
|
||||||
if (bp.changes & 2)
|
if (bp.changes & 0xF002) // logicopenable | logicmode
|
||||||
SetLogicOpMode();
|
SetLogicOpMode();
|
||||||
|
|
||||||
// Set Dithering Mode
|
// Set Dithering Mode
|
||||||
if (bp.changes & 4)
|
if (bp.changes & 4) // dither
|
||||||
SetDitherMode();
|
SetDitherMode();
|
||||||
|
|
||||||
// Set Blending Mode
|
// Set Blending Mode
|
||||||
if (bp.changes & 0xFF1)
|
if (bp.changes & 0xFF1) // blendenable | alphaupdate | dstfactor | srcfactor | subtract
|
||||||
SetBlendMode();
|
SetBlendMode();
|
||||||
|
|
||||||
// Set Color Mask
|
// Set Color Mask
|
||||||
if (bp.changes & 0x18)
|
if (bp.changes & 0x18) // colorupdate | alphaupdate
|
||||||
SetColorMask();
|
SetColorMask();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue