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
This commit is contained in:
John Peterson 2009-02-24 19:19:50 +00:00
parent 354f1e5f44
commit e59869e63c
2 changed files with 5 additions and 4 deletions

View File

@ -130,6 +130,7 @@ public:
&currWinRes.x, &currWinRes.y); &currWinRes.x, &currWinRes.y);
SetProperty(OGL_FULLSCREEN, g_Config.bFullscreen); SetProperty(OGL_FULLSCREEN, g_Config.bFullscreen);
// What does this do?
SetProperty(OGL_KEEPRATIO, g_Config.bKeepAR43); SetProperty(OGL_KEEPRATIO, g_Config.bKeepAR43);
SetProperty(OGL_HIDECURSOR, g_Config.bHideCursor); SetProperty(OGL_HIDECURSOR, g_Config.bHideCursor);

View File

@ -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 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 has been filled with either for example white, or have copies of old renderings on it. So we replace
that with blacknes. */ that with blacknes. */
// -------------------- // --------------------
if(g_Config.bKeepAR43) if(g_Config.bKeepAR43 || g_Config.bKeepAR169)
{ {
// Set current drawing color to red // Set current drawing color to black
glColor3f(0.0, 0.0, 0.0); // Black glColor3f(0.0, 0.0, 0.0);
/* This doesn't work /* This doesn't work
glRecti, glRectf( glRecti, glRectf(