diff options
| author | Nolan Check <Nolan.Check@gmail.com> | 2009-06-26 10:47:37 +0000 |
|---|---|---|
| committer | Nolan Check <Nolan.Check@gmail.com> | 2009-06-26 10:47:37 +0000 |
| commit | d4625bcd3afa717e8a0c02020b1317cd5f94a337 (patch) | |
| tree | d4b5e425de026f5fe1b0774010dbf6ae3f4e6698 /Source | |
| parent | a3980965842a695c265d082d620d437579e4e0f8 (diff) | |
Fix vertical squishing in Real-XFB mode
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3548 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Plugins/Plugin_VideoOGL/Src/Render.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp index 309fa248b8..08cb4c7960 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp @@ -950,7 +950,13 @@ void Renderer::Swap() float u_max; float v_min = 0.f; float v_max; - if (g_Config.bAutoScale) + if (g_Config.bUseXFB) + { + u_max = XFB_WIDTH; + v_min = 0; + v_max = XFB_HEIGHT; + } + else if (g_Config.bAutoScale) { u_max = (s_efbSourceRc.right - s_efbSourceRc.left); v_min = (float)GetTargetHeight() - (s_efbSourceRc.bottom - s_efbSourceRc.top); |
