Little fix for platforms not moving in Wind Waker on Dolphin 32bits, see issue 1139

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3973 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
sl1nk3.s
2009-08-12 23:31:57 +00:00
parent ea561430ff
commit 1cb10791c0
3 changed files with 8 additions and 7 deletions

View File

@ -1084,7 +1084,7 @@ static void EndField()
// Purpose 1: Send VI interrupt for every screen refresh
// Purpose 2: Execute XFB copy in homebrew games
// Run when: This is run 7200 times per second on full speed
// Run when: This is run 15700 times per second on full speed
void Update()
{
// Update the target refresh rate
@ -1104,7 +1104,6 @@ void Update()
// Multipled by two because of the way TicksPerFrame is calculated (divided by 25 and 30
// rather than 50 and 60)
// TODO : Feed the FPS estimate into Iulius' framelimiter.
ActualRefreshRate = ((double)SyncTicksProgress / (double)TicksPerFrame) * 2.0;
LastTick = CoreTiming::GetTicks();
SyncTicksProgress = 0;

View File

@ -287,9 +287,9 @@ void fdivx(UGeckoInstruction _inst)
}
void fdivsx(UGeckoInstruction _inst)
{
float a = (float)rPS0(_inst.FA);
float b = (float)rPS0(_inst.FB);
rPS0(_inst.FD) = rPS1(_inst.FD) = a / b;
double a = rPS0(_inst.FA);
double b = rPS0(_inst.FB);
rPS0(_inst.FD) = rPS1(_inst.FD) = (float)(a / b);
if (b == 0.0)
{
if (!FPSCR.ZX)