From 335a02b030bf985bab3eb8c19918b222fc0e1c7c Mon Sep 17 00:00:00 2001 From: Nolan Check Date: Tue, 28 Jul 2009 05:02:47 +0000 Subject: [PATCH] Fix "Show EFB copy regions" (thanks sskkiipp) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3894 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/Render.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp index 7188ac94bf..202679a1e2 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp @@ -1118,10 +1118,8 @@ void Renderer::DrawDebugText() // Draw EFB copy regions rectangles for (std::vector::const_iterator it = stats.efb_regions.begin(); it != stats.efb_regions.end(); ++it) { - // TODO: Scale EFBRectangles correctly - - GLfloat halfWidth = Renderer::GetTargetWidth() / 2.0f; - GLfloat halfHeight = Renderer::GetTargetHeight() / 2.0f; + GLfloat halfWidth = EFB_WIDTH / 2.0f; + GLfloat halfHeight = EFB_HEIGHT / 2.0f; GLfloat x = (GLfloat) -1.0f + ((GLfloat)it->left / halfWidth); GLfloat y = (GLfloat) 1.0f - ((GLfloat)it->top / halfHeight); GLfloat x2 = (GLfloat) -1.0f + ((GLfloat)it->right / halfWidth);