Added NVIDIA 3D Vision support. Patch by Uhyve.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6347 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
skidau
2010-11-05 11:24:46 +00:00
parent eb167e3ca8
commit 5436bef30b
9 changed files with 150 additions and 15 deletions

View File

@ -52,6 +52,8 @@
#include "debugger/debugger.h"
#include "Render3dVision.h"
static int s_fps = 0;
static bool WindowResized;
@ -1319,8 +1321,17 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons
}
else
{
xScale = (float)(dst_rect.right - dst_rect.left) / (float)s_XFB_width;
yScale = (float)(dst_rect.bottom - dst_rect.top) / (float)s_XFB_height;
if(Render3dVision::isEnable3dVision())
{
// This works, yet the version in the else doesn't. No idea why.
xScale = (float)s_backbuffer_width / (float)s_XFB_width;
yScale = (float)s_backbuffer_height / (float)s_XFB_height;
}
else
{
xScale = (float)(dst_rect.right - dst_rect.left) / (float)s_XFB_width;
yScale = (float)(dst_rect.bottom - dst_rect.top) / (float)s_XFB_height;
}
}
float SupersampleCoeficient = s_LastAA + 1;