mirror of https://github.com/snes9xgit/snes9x.git
Test for transparency before dithering.
This commit is contained in:
parent
113a43c4cd
commit
bd9db57262
12
fxinst.cpp
12
fxinst.cpp
|
@ -906,14 +906,14 @@ static void fx_plot_2bit (void)
|
|||
return;
|
||||
#endif
|
||||
|
||||
if (!(GSU.vPlotOptionReg & 0x01) && !(COLR & 0xf))
|
||||
return;
|
||||
|
||||
if (GSU.vPlotOptionReg & 0x02)
|
||||
c = ((x ^ y) & 1) ? (uint8) (GSU.vColorReg >> 4) : (uint8) GSU.vColorReg;
|
||||
else
|
||||
c = (uint8) GSU.vColorReg;
|
||||
|
||||
if (!(GSU.vPlotOptionReg & 0x01) && !(c & 0xf))
|
||||
return;
|
||||
|
||||
a = GSU.apvScreen[y >> 3] + GSU.x[x >> 3] + ((y & 7) << 1);
|
||||
v = 128 >> (x & 7);
|
||||
|
||||
|
@ -970,14 +970,14 @@ static void fx_plot_4bit (void)
|
|||
return;
|
||||
#endif
|
||||
|
||||
if (!(GSU.vPlotOptionReg & 0x01) && !(COLR & 0xf))
|
||||
return;
|
||||
|
||||
if (GSU.vPlotOptionReg & 0x02)
|
||||
c = ((x ^ y) & 1) ? (uint8) (GSU.vColorReg >> 4) : (uint8) GSU.vColorReg;
|
||||
else
|
||||
c = (uint8) GSU.vColorReg;
|
||||
|
||||
if (!(GSU.vPlotOptionReg & 0x01) && !(c & 0xf))
|
||||
return;
|
||||
|
||||
a = GSU.apvScreen[y >> 3] + GSU.x[x >> 3] + ((y & 7) << 1);
|
||||
v = 128 >> (x & 7);
|
||||
|
||||
|
|
Loading…
Reference in New Issue