mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
GFX: New GlobalControl system - cleaner way to control hacks and for possible control over other parts of the video code (video debugger control).
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3982 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
32d213a823
commit
5ac7105b66
9 changed files with 267 additions and 7 deletions
|
@ -30,6 +30,7 @@
|
|||
#include "../TextureMngr.h"
|
||||
#include "VertexShaderManager.h"
|
||||
#include "../PostProcessing.h"
|
||||
#include "GlobalControl.h"
|
||||
|
||||
BEGIN_EVENT_TABLE(GFXConfigDialogOGL,wxDialog)
|
||||
EVT_CLOSE(GFXConfigDialogOGL::OnClose)
|
||||
|
@ -700,6 +701,7 @@ void GFXConfigDialogOGL::AdvancedSettingsChanged(wxCommandEvent& event)
|
|||
break;
|
||||
case ID_FREELOOK:
|
||||
g_Config.bFreeLook = m_FreeLook->IsChecked();
|
||||
Projection_SetFreeLook(g_Config.bFreeLook);
|
||||
break;
|
||||
case ID_TEXTUREPATH:
|
||||
break;
|
||||
|
@ -835,5 +837,10 @@ void Config::UpdateProjectionHack()
|
|||
g_Config.bProjHack1 = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
// Set the projections hacks
|
||||
Projection_SetHack0(g_Config.bProjHack1);
|
||||
Projection_SetHack1(ProjectionHack(g_Config.bPhackvalue1 == 0 ? false : true, g_Config.fhackvalue1));
|
||||
Projection_SetHack2(ProjectionHack(g_Config.bPhackvalue2 == 0 ? false : true, g_Config.fhackvalue2));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue