Forgot a file for last commit :(
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4452 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
833341696b
commit
9c9025f089
|
@ -293,15 +293,11 @@ bool Renderer::Init()
|
|||
|
||||
// Decide frambuffer size
|
||||
int W = (int)OpenGL_GetBackbufferWidth(), H = (int)OpenGL_GetBackbufferHeight();
|
||||
if (g_ActiveConfig.bNativeResolution)
|
||||
|
||||
if (g_ActiveConfig.b2xResolution)
|
||||
{
|
||||
m_FrameBufferWidth = EFB_WIDTH;
|
||||
m_FrameBufferHeight = EFB_HEIGHT;
|
||||
}
|
||||
else if (g_ActiveConfig.b2xResolution)
|
||||
{
|
||||
m_FrameBufferWidth = 2 * EFB_WIDTH;
|
||||
m_FrameBufferHeight = 2 * EFB_HEIGHT;
|
||||
m_FrameBufferWidth = (2 * EFB_HEIGHT >= W) ? 2 * EFB_HEIGHT : W;
|
||||
m_FrameBufferHeight = (2 * EFB_HEIGHT >= H) ? 2 * EFB_HEIGHT : H;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -324,7 +320,7 @@ bool Renderer::Init()
|
|||
m_CustomHeight = (int)OpenGL_GetBackbufferHeight();
|
||||
|
||||
// Because of the fixed framebuffer size we need to disable the resolution options while running
|
||||
g_ActiveConfig.bRunning = true;
|
||||
g_Config.bRunning = true;
|
||||
|
||||
if (GL_REPORT_ERROR() != GL_NO_ERROR)
|
||||
bSuccess = false;
|
||||
|
@ -1154,12 +1150,14 @@ void Renderer::DrawDebugText()
|
|||
}
|
||||
|
||||
// OSD Menu messages
|
||||
if (OSDChoice > 0 && g_ActiveConfig.bEFBCopyDisableHotKey)
|
||||
if (g_ActiveConfig.bOSDHotKey)
|
||||
{
|
||||
if (OSDChoice > 0)
|
||||
{
|
||||
OSDTime = timeGetTime() + 3000;
|
||||
OSDChoice = -OSDChoice;
|
||||
}
|
||||
if ((u32)OSDTime > timeGetTime() && g_ActiveConfig.bEFBCopyDisableHotKey)
|
||||
if ((u32)OSDTime > timeGetTime())
|
||||
{
|
||||
std::string T1 = "", T2 = "";
|
||||
std::vector<std::string> T0;
|
||||
|
@ -1201,11 +1199,11 @@ void Renderer::DrawDebugText()
|
|||
T1 += (OSDChoice == -5) ? T0.at(4) : "\n";
|
||||
|
||||
// The other settings in cyan
|
||||
T2 += !(OSDChoice == -1) ? T0.at(0) : "\n";
|
||||
T2 += !(OSDChoice == -2) ? T0.at(1) : "\n";
|
||||
T2 += !(OSDChoice == -3) ? T0.at(2) : "\n";
|
||||
T2 += !(OSDChoice == -4) ? T0.at(3) : "\n";
|
||||
T2 += !(OSDChoice == -5) ? T0.at(4) : "\n";
|
||||
T2 += (OSDChoice != -1) ? T0.at(0) : "\n";
|
||||
T2 += (OSDChoice != -2) ? T0.at(1) : "\n";
|
||||
T2 += (OSDChoice != -3) ? T0.at(2) : "\n";
|
||||
T2 += (OSDChoice != -4) ? T0.at(3) : "\n";
|
||||
T2 += (OSDChoice != -5) ? T0.at(4) : "\n";
|
||||
|
||||
// Render a shadow, and then the text
|
||||
Renderer::RenderText(T1.c_str(), 21, 21, 0xDD000000);
|
||||
|
@ -1213,6 +1211,7 @@ void Renderer::DrawDebugText()
|
|||
Renderer::RenderText(T2.c_str(), 21, 21, 0xDD000000);
|
||||
Renderer::RenderText(T2.c_str(), 20, 20, 0xFF00FFFF);
|
||||
}
|
||||
}
|
||||
}
|
||||
void Renderer::RenderText(const char* pstr, int left, int top, u32 color)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue