Fix "Show EFB copy regions" (thanks sskkiipp)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3894 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Nolan Check 2009-07-28 05:02:47 +00:00
parent 8027ab53d0
commit 335a02b030
1 changed files with 2 additions and 4 deletions

View File

@ -1118,10 +1118,8 @@ void Renderer::DrawDebugText()
// Draw EFB copy regions rectangles
for (std::vector<EFBRectangle>::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);