mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
OpenGL GUI: Disabled render to separate window options when we are not using that option
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2312 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -142,7 +142,7 @@ void DllConfig(HWND _hParent)
|
||||
char szBuffer[100];
|
||||
sprintf(szBuffer,"%dx%d", dmi.dmPelsWidth, dmi.dmPelsHeight);
|
||||
std::string strBuffer(szBuffer);
|
||||
// Create a check loop to check every pointer of resos to see if the res is added or not
|
||||
// Create a check loop to check every pointer of resolutions to see if the res is added or not
|
||||
int b = 0;
|
||||
bool resFound = false;
|
||||
while (b < i && !resFound)
|
||||
@ -151,8 +151,8 @@ void DllConfig(HWND _hParent)
|
||||
resFound = (resos[b] == strBuffer);
|
||||
b++;
|
||||
}
|
||||
// Add the resolution
|
||||
if (!resFound)
|
||||
// Add the res
|
||||
{
|
||||
resos[i] = strBuffer;
|
||||
i++;
|
||||
@ -161,6 +161,14 @@ void DllConfig(HWND _hParent)
|
||||
}
|
||||
ZeroMemory(&dmi, sizeof(dmi));
|
||||
}
|
||||
|
||||
// Check if at least one resolution was found. If we don't and the resolution array is empty
|
||||
// CreateGUIControls() will crash because the array is empty.
|
||||
if (frame->arrayStringFor_FullscreenCB.size() == 0)
|
||||
{
|
||||
frame->AddFSReso("<No resolutions found>");
|
||||
frame->AddWindowReso("<No resolutions found>");
|
||||
}
|
||||
// ----------------------------
|
||||
|
||||
// Create the controls and show the window
|
||||
|
Reference in New Issue
Block a user