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:
sl1nk3.s 2009-10-22 20:22:50 +00:00
parent 833341696b
commit 9c9025f089
1 changed files with 58 additions and 59 deletions

View File

@ -293,15 +293,11 @@ bool Renderer::Init()
// Decide frambuffer size // Decide frambuffer size
int W = (int)OpenGL_GetBackbufferWidth(), H = (int)OpenGL_GetBackbufferHeight(); int W = (int)OpenGL_GetBackbufferWidth(), H = (int)OpenGL_GetBackbufferHeight();
if (g_ActiveConfig.bNativeResolution)
if (g_ActiveConfig.b2xResolution)
{ {
m_FrameBufferWidth = EFB_WIDTH; m_FrameBufferWidth = (2 * EFB_HEIGHT >= W) ? 2 * EFB_HEIGHT : W;
m_FrameBufferHeight = EFB_HEIGHT; m_FrameBufferHeight = (2 * EFB_HEIGHT >= H) ? 2 * EFB_HEIGHT : H;
}
else if (g_ActiveConfig.b2xResolution)
{
m_FrameBufferWidth = 2 * EFB_WIDTH;
m_FrameBufferHeight = 2 * EFB_HEIGHT;
} }
else else
{ {
@ -324,7 +320,7 @@ bool Renderer::Init()
m_CustomHeight = (int)OpenGL_GetBackbufferHeight(); m_CustomHeight = (int)OpenGL_GetBackbufferHeight();
// Because of the fixed framebuffer size we need to disable the resolution options while running // 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) if (GL_REPORT_ERROR() != GL_NO_ERROR)
bSuccess = false; bSuccess = false;
@ -1154,12 +1150,14 @@ void Renderer::DrawDebugText()
} }
// OSD Menu messages // OSD Menu messages
if (OSDChoice > 0 && g_ActiveConfig.bEFBCopyDisableHotKey) if (g_ActiveConfig.bOSDHotKey)
{
if (OSDChoice > 0)
{ {
OSDTime = timeGetTime() + 3000; OSDTime = timeGetTime() + 3000;
OSDChoice = -OSDChoice; OSDChoice = -OSDChoice;
} }
if ((u32)OSDTime > timeGetTime() && g_ActiveConfig.bEFBCopyDisableHotKey) if ((u32)OSDTime > timeGetTime())
{ {
std::string T1 = "", T2 = ""; std::string T1 = "", T2 = "";
std::vector<std::string> T0; std::vector<std::string> T0;
@ -1201,11 +1199,11 @@ void Renderer::DrawDebugText()
T1 += (OSDChoice == -5) ? T0.at(4) : "\n"; T1 += (OSDChoice == -5) ? T0.at(4) : "\n";
// The other settings in cyan // The other settings in cyan
T2 += !(OSDChoice == -1) ? T0.at(0) : "\n"; T2 += (OSDChoice != -1) ? T0.at(0) : "\n";
T2 += !(OSDChoice == -2) ? T0.at(1) : "\n"; T2 += (OSDChoice != -2) ? T0.at(1) : "\n";
T2 += !(OSDChoice == -3) ? T0.at(2) : "\n"; T2 += (OSDChoice != -3) ? T0.at(2) : "\n";
T2 += !(OSDChoice == -4) ? T0.at(3) : "\n"; T2 += (OSDChoice != -4) ? T0.at(3) : "\n";
T2 += !(OSDChoice == -5) ? T0.at(4) : "\n"; T2 += (OSDChoice != -5) ? T0.at(4) : "\n";
// Render a shadow, and then the text // Render a shadow, and then the text
Renderer::RenderText(T1.c_str(), 21, 21, 0xDD000000); Renderer::RenderText(T1.c_str(), 21, 21, 0xDD000000);
@ -1214,6 +1212,7 @@ void Renderer::DrawDebugText()
Renderer::RenderText(T2.c_str(), 20, 20, 0xFF00FFFF); Renderer::RenderText(T2.c_str(), 20, 20, 0xFF00FFFF);
} }
} }
}
void Renderer::RenderText(const char* pstr, int left, int top, u32 color) void Renderer::RenderText(const char* pstr, int left, int top, u32 color)
{ {
int nBackbufferWidth = (int)OpenGL_GetBackbufferWidth(); int nBackbufferWidth = (int)OpenGL_GetBackbufferWidth();