summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoOGL
diff options
context:
space:
mode:
authorNeoBrainX <NeoBrainX@gmail.com>2012-09-28 23:21:09 +0200
committerNeoBrainX <NeoBrainX@gmail.com>2012-10-03 13:44:13 +0200
commit8f5223d0e66bf3fa3c1fe314b8e40c19555d3b09 (patch)
tree6972427430a836a343f3d7edd3101d4f8441501a /Source/Plugins/Plugin_VideoOGL
parent6e4a61a991a29f32367accc2aa8a6d1e575b2090 (diff)
More cleanups.
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL')
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/Render.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp
index 4bdee8e198..cf81459245 100644
--- a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp
+++ b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp
@@ -1067,7 +1067,14 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons
MathUtil::Rectangle<float> drawRc;
- if (!g_ActiveConfig.bUseRealXFB)
+ if (g_ActiveConfig.bUseRealXFB)
+ {
+ drawRc.top = 1;
+ drawRc.bottom = -1;
+ drawRc.left = -1;
+ drawRc.right = 1;
+ }
+ else
{
// use virtual xfb with offset
int xfbHeight = xfbSource->srcHeight;
@@ -1088,14 +1095,6 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons
//drawRc.left *= hScale;
//drawRc.right *= hScale;
}
- else
- {
- drawRc.top = 1;
- drawRc.bottom = -1;
- drawRc.left = -1;
- drawRc.right = 1;
- }
-
// Tell the OSD Menu about the current internal resolution
OSDInternalW = xfbSource->sourceRc.GetWidth(); OSDInternalH = xfbSource->sourceRc.GetHeight();