General cleanup to 3D Vision hack, fits in more with the Dolphin coding style now. Also, fixed the crash that would occur when using a mouse button with 3D Vision enabled.

Not sure how to fix Dolphins hotkeys when 3D Vision is enabled (I do know a way, but it's messy and I don't want 3D Vision messing with Dolphin's cleanliness).

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6362 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Matt Callaghan
2010-11-08 22:17:51 +00:00
parent 4782a8fc5a
commit 15d74b7461
10 changed files with 16 additions and 124 deletions

View File

@ -52,8 +52,6 @@
#include "debugger/debugger.h"
#include "Render3dVision.h"
static int s_fps = 0;
static bool WindowResized;
@ -1321,7 +1319,7 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons
}
else
{
if(Render3dVision::isEnable3dVision())
if(g_ActiveConfig.b3DVision)
{
// This works, yet the version in the else doesn't. No idea why.
xScale = (float)s_backbuffer_width / (float)s_XFB_width;