mirror of
https://github.com/libretro/FBNeo.git
synced 2025-03-09 04:43:17 +00:00
taitof2: fix for driftout/driveout titlescreen effect.
This commit is contained in:
parent
96827e2a8e
commit
a80b2cea51
@ -12,11 +12,12 @@
|
||||
#include "burn_ym2203.h"
|
||||
#include "msm6295.h"
|
||||
|
||||
static INT32 Footchmp;
|
||||
static INT32 Footchmp = 0;
|
||||
static INT32 YesnoDip;
|
||||
static INT32 MjnquestInput;
|
||||
static INT32 DriveoutSoundNibble;
|
||||
static INT32 DriveoutOkiBank;
|
||||
static INT32 Driftout = 0;
|
||||
|
||||
INT32 TaitoF2SpriteType;
|
||||
INT32 TaitoF2SpritesFlipScreen;
|
||||
@ -5266,6 +5267,11 @@ void __fastcall Driftout68KWriteWord(UINT32 a, UINT16 d)
|
||||
//???
|
||||
return;
|
||||
}
|
||||
|
||||
case 0x20019c: {
|
||||
//???
|
||||
return;
|
||||
}
|
||||
|
||||
default: {
|
||||
bprintf(PRINT_NORMAL, _T("68K #1 Write word => %06X, %04X\n"), a, d);
|
||||
@ -7957,6 +7963,8 @@ static INT32 DriftoutInit()
|
||||
|
||||
SpritePriWritebackMode = 0;
|
||||
|
||||
Driftout = 1;
|
||||
|
||||
// Reset the driver
|
||||
TaitoF2DoReset();
|
||||
|
||||
@ -8053,7 +8061,9 @@ static INT32 DriveoutInit()
|
||||
PaletteType = QZQUESTPalette;
|
||||
|
||||
SpritePriWritebackMode = 0;
|
||||
|
||||
|
||||
Driftout = 1;
|
||||
|
||||
// Reset the driver
|
||||
TaitoF2DoReset();
|
||||
|
||||
@ -9468,7 +9478,9 @@ static INT32 TaitoF2Exit()
|
||||
MjnquestInput = 0;
|
||||
DriveoutSoundNibble = 0;
|
||||
DriveoutOkiBank = 0;
|
||||
|
||||
|
||||
Driftout = 0;
|
||||
|
||||
TaitoF2SpriteBufferFunction = NULL;
|
||||
|
||||
PaletteType = 0;
|
||||
@ -10380,6 +10392,8 @@ static INT32 TaitoF2PriRozDraw()
|
||||
RozPriority = (TC0360PRIRegs[8 + (RozPriority / 2)] >> 4 * (RozPriority & 1)) & 0x0f;
|
||||
TC0280GRDBaseColour = (TC0360PRIRegs[1] & 0x3f) << 2;
|
||||
|
||||
if (Driftout && RozPriority == 0) RozPriority = -1; // disable roz layer for driftout
|
||||
|
||||
BurnTransferClear();
|
||||
DynCalcPalette();
|
||||
|
||||
|
@ -18,7 +18,7 @@ void TC0360PRIHalfWordWrite(UINT32 Offset, UINT16 Data)
|
||||
|
||||
void TC0360PRIHalfWordSwapWrite(UINT32 Offset, UINT16 Data)
|
||||
{
|
||||
if (Data & 0xff00) TC0360PRIWrite(Offset, (Data >> 8) & 0xff);
|
||||
TC0360PRIWrite(Offset, (Data >> 8) & 0xff);
|
||||
}
|
||||
|
||||
void TC0360PRIReset()
|
||||
|
Loading…
x
Reference in New Issue
Block a user