From e59869e63cb0164af0d22d66561fedfae07c6a4c Mon Sep 17 00:00:00 2001 From: John Peterson Date: Tue, 24 Feb 2009 19:19:50 +0000 Subject: [PATCH] OpenGL: Added the black border function to 16:9 to git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2419 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/GLWindow.h | 1 + Source/Plugins/Plugin_VideoOGL/Src/Render.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/GLWindow.h b/Source/Plugins/Plugin_VideoOGL/Src/GLWindow.h index 198ff9b7cd..0069211270 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/GLWindow.h +++ b/Source/Plugins/Plugin_VideoOGL/Src/GLWindow.h @@ -130,6 +130,7 @@ public: &currWinRes.x, &currWinRes.y); SetProperty(OGL_FULLSCREEN, g_Config.bFullscreen); + // What does this do? SetProperty(OGL_KEEPRATIO, g_Config.bKeepAR43); SetProperty(OGL_HIDECURSOR, g_Config.bHideCursor); diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp index b67b02c9e6..eb6bc30cec 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp @@ -987,15 +987,15 @@ void Renderer::Swap(const TRectangle& rc) // ----------------------------------------------------------------------- - /* Blacken out the borders in the 4:3 or the coming 16:9 aspect ratio modes. Somewhere in BPStructs + /* Blacken out the borders in the 4:3 or 16:9 aspect ratio modes. Somewhere in BPStructs 0x52 or elsewhere the area outside the actual picture, that we now show with the aspect ratio option has been filled with either for example white, or have copies of old renderings on it. So we replace that with blacknes. */ // -------------------- - if(g_Config.bKeepAR43) + if(g_Config.bKeepAR43 || g_Config.bKeepAR169) { - // Set current drawing color to red - glColor3f(0.0, 0.0, 0.0); // Black + // Set current drawing color to black + glColor3f(0.0, 0.0, 0.0); /* This doesn't work glRecti, glRectf(