summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp
diff options
context:
space:
mode:
authorJohn Peterson <jpeterson57@gmail.com>2009-09-06 13:36:05 +0000
committerJohn Peterson <jpeterson57@gmail.com>2009-09-06 13:36:05 +0000
commita3345ea942c975ceaaccf9b7bf7a4121411cba41 (patch)
tree054b9a2d28bfc798ac5238a58c82e8aff2e9ab94 /Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp
parent49e849dc946adba835ffbef64be867eca23bfa63 (diff)
GUI: Fixed a double keydown event in the main frame, the double click in the video window (didn't know about CS_DBLCLKS)
OpenGL: Fixed the live resolution setting git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4211 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp b/Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp
index e55923f401..9aed4c6459 100644
--- a/Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp
+++ b/Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp
@@ -20,6 +20,7 @@
#include "TextureConverter.h"
#include "XFB.h"
+#include "Render.h"
extern bool s_bHaveFramebufferBlit; // comes from Render.cpp
@@ -264,10 +265,10 @@ GLuint FramebufferManager::GetEFBDepthTexture(const EFBRectangle& sourceRc) cons
TargetRectangle FramebufferManager::ConvertEFBRectangle(const EFBRectangle& rc) const
{
TargetRectangle result;
- result.left = rc.left * m_targetWidth / EFB_WIDTH;
- result.top = m_targetHeight - (rc.top * m_targetHeight / EFB_HEIGHT);
- result.right = rc.right * m_targetWidth / EFB_WIDTH;
- result.bottom = m_targetHeight - (rc.bottom * m_targetHeight / EFB_HEIGHT);
+ result.left = rc.left * Renderer::GetTargetWidth() / EFB_WIDTH;
+ result.top = Renderer::GetTargetHeight() - (rc.top * Renderer::GetTargetHeight() / EFB_HEIGHT);
+ result.right = rc.right * Renderer::GetTargetWidth() / EFB_WIDTH;
+ result.bottom = Renderer::GetTargetHeight() - (rc.bottom * Renderer::GetTargetHeight() / EFB_HEIGHT);
return result;
}
@@ -317,8 +318,8 @@ void FramebufferManager::copyToVirtualXFB(u32 xfbAddr, u32 fbWidth, u32 fbHeight
it->xfbWidth = fbWidth;
it->xfbHeight = fbHeight;
- it->xfbSource.texWidth = m_targetWidth;
- it->xfbSource.texHeight = m_targetHeight;
+ it->xfbSource.texWidth = Renderer::GetTargetWidth();
+ it->xfbSource.texHeight = Renderer::GetTargetHeight();
it->xfbSource.sourceRc = ConvertEFBRectangle(sourceRc);
xfbTexture = it->xfbSource.texture;