mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 21:28:51 +00:00
OpenGL: OSD menu live resolution change fixes
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4212 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
a3345ea942
commit
1320e21ded
8 changed files with 110 additions and 66 deletions
|
@ -29,6 +29,7 @@
|
|||
#include "Win32.h"
|
||||
#include "OnScreenDisplay.h"
|
||||
#include "VertexShaderManager.h"
|
||||
#include "Render.h"
|
||||
|
||||
#include "StringUtil.h"
|
||||
|
||||
|
@ -101,9 +102,9 @@ void OSDMenu(WPARAM wParam)
|
|||
// Toggle native resolution
|
||||
if (!(g_Config.bNativeResolution || g_Config.b2xResolution))
|
||||
g_Config.bNativeResolution = true;
|
||||
else if (g_Config.bNativeResolution)
|
||||
{ g_Config.bNativeResolution = false; if (g_Config.bAllow2xResolution) {g_Config.b2xResolution = true;} }
|
||||
else
|
||||
else if (g_Config.bNativeResolution && Renderer::AllowCustom())
|
||||
{ g_Config.bNativeResolution = false; if (Renderer::Allow2x()) {g_Config.b2xResolution = true;} }
|
||||
else if (Renderer::AllowCustom())
|
||||
g_Config.b2xResolution = false;
|
||||
break;
|
||||
case '4':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue