mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
Isolate D3D and Software Renderer from wxWidgets code
This commit is contained in:
parent
35654513c1
commit
a66a7e1344
11 changed files with 227 additions and 22 deletions
|
@ -3,7 +3,6 @@
|
|||
// Refer to the license.txt file included.
|
||||
|
||||
#include <string>
|
||||
#include <wx/wx.h>
|
||||
|
||||
#include "Common/FileUtil.h"
|
||||
#include "Common/IniFile.h"
|
||||
|
@ -14,9 +13,6 @@
|
|||
#include "Core/Core.h"
|
||||
#include "Core/Host.h"
|
||||
|
||||
#include "DolphinWX/VideoConfigDiag.h"
|
||||
#include "DolphinWX/Debugger/DebuggerPanel.h"
|
||||
|
||||
#include "VideoBackends/D3D/D3DBase.h"
|
||||
#include "VideoBackends/D3D/D3DUtil.h"
|
||||
#include "VideoBackends/D3D/Globals.h"
|
||||
|
@ -139,13 +135,10 @@ void InitBackendInfo()
|
|||
DX11::D3D::UnloadD3D();
|
||||
}
|
||||
|
||||
void VideoBackend::ShowConfig(void *_hParent)
|
||||
void VideoBackend::ShowConfig(void *hParent)
|
||||
{
|
||||
#if defined(HAVE_WX) && HAVE_WX
|
||||
InitBackendInfo();
|
||||
VideoConfigDiag diag((wxWindow*)_hParent, _trans("Direct3D"), "gfx_dx11");
|
||||
diag.ShowModal();
|
||||
#endif
|
||||
Host_ShowVideoConfig(hParent, GetDisplayName(), "gfx_dx11");
|
||||
}
|
||||
|
||||
bool VideoBackend::Initialize(void *&window_handle)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue