summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorsl1nk3.s <sl1nk3.s@gmail.com>2009-08-12 23:31:57 +0000
committersl1nk3.s <sl1nk3.s@gmail.com>2009-08-12 23:31:57 +0000
commit1cb10791c0bf006fa80fa630ed1236bc79a1376e (patch)
treec3c4bedb2614ed63a48ff7cb660c7b6c75e76caf /Source/Core
parentea561430ff79ac1b3b4fb0efe8ed8afbd39058ef (diff)
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
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Src/HW/VideoInterface.cpp3
-rw-r--r--Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp6
2 files changed, 4 insertions, 5 deletions
diff --git a/Source/Core/Core/Src/HW/VideoInterface.cpp b/Source/Core/Core/Src/HW/VideoInterface.cpp
index 29972629a6..99d918e91a 100644
--- a/Source/Core/Core/Src/HW/VideoInterface.cpp
+++ b/Source/Core/Core/Src/HW/VideoInterface.cpp
@@ -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;
diff --git a/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp b/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp
index 772a755958..c5fa330cab 100644
--- a/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp
+++ b/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp
@@ -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)