diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2014-08-03 17:32:32 -0700 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2014-08-03 17:32:32 -0700 |
| commit | 1fcf07f9cccf838894bf7a869ec0749cf2abbb2d (patch) | |
| tree | 73f77b4597289f4dc663f332bc368db78e231c35 /Source/Core/VideoBackends | |
| parent | 35654513c1ba0eb9ccd39b1e49254b8d2786e184 (diff) | |
| parent | a66a7e1344bac0522dab868104be39923c1608bc (diff) | |
Merge pull request #5 from lioncash/vertex-loader
Isolate D3D and Software Renderer from wxWidgets code
Diffstat (limited to 'Source/Core/VideoBackends')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/main.cpp | 11 | ||||
| -rw-r--r-- | Source/Core/VideoBackends/OGL/main.cpp | 2 | ||||
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWmain.cpp | 15 | ||||
| -rw-r--r-- | Source/Core/VideoBackends/Software/Software.vcxproj | 2 | ||||
| -rw-r--r-- | Source/Core/VideoBackends/Software/VideoBackend.h | 1 |
5 files changed, 12 insertions, 19 deletions
diff --git a/Source/Core/VideoBackends/D3D/main.cpp b/Source/Core/VideoBackends/D3D/main.cpp index 1e78abfcb7..42c492b793 100644 --- a/Source/Core/VideoBackends/D3D/main.cpp +++ b/Source/Core/VideoBackends/D3D/main.cpp @@ -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) diff --git a/Source/Core/VideoBackends/OGL/main.cpp b/Source/Core/VideoBackends/OGL/main.cpp index aa042c3405..44febec4a9 100644 --- a/Source/Core/VideoBackends/OGL/main.cpp +++ b/Source/Core/VideoBackends/OGL/main.cpp @@ -157,7 +157,7 @@ static void InitBackendInfo() void VideoBackend::ShowConfig(void *_hParent) { InitBackendInfo(); - Host_ShowVideoConfig(_hParent, "OpenGL", "gfx_opengl"); + Host_ShowVideoConfig(_hParent, GetDisplayName(), "gfx_opengl"); } bool VideoBackend::Initialize(void *&window_handle) diff --git a/Source/Core/VideoBackends/Software/SWmain.cpp b/Source/Core/VideoBackends/Software/SWmain.cpp index 7a0e88011f..415fa0547b 100644 --- a/Source/Core/VideoBackends/Software/SWmain.cpp +++ b/Source/Core/VideoBackends/Software/SWmain.cpp @@ -33,10 +33,6 @@ #include "VideoBackends/Software/VideoBackend.h" #include "VideoBackends/Software/XFMemLoader.h" -#if defined(HAVE_WX) && HAVE_WX -#include "VideoBackends/Software/VideoConfigDialog.h" -#endif // HAVE_WX - #include "VideoCommon/Fifo.h" #include "VideoCommon/OnScreenDisplay.h" #include "VideoCommon/PixelEngine.h" @@ -62,12 +58,17 @@ static std::mutex m_csSWVidOccupied; std::string VideoSoftware::GetName() const { - return _trans("Software Renderer"); + return "Software Renderer"; +} + +std::string VideoSoftware::GetDisplayName() const +{ + return "Software Renderer"; } -void VideoSoftware::ShowConfig(void *_hParent) +void VideoSoftware::ShowConfig(void *hParent) { - Host_ShowVideoConfig(_hParent, "Software", "gfx_software"); + Host_ShowVideoConfig(hParent, GetDisplayName(), "gfx_software"); } bool VideoSoftware::Initialize(void *&window_handle) diff --git a/Source/Core/VideoBackends/Software/Software.vcxproj b/Source/Core/VideoBackends/Software/Software.vcxproj index 2f1febddfe..39732cd845 100644 --- a/Source/Core/VideoBackends/Software/Software.vcxproj +++ b/Source/Core/VideoBackends/Software/Software.vcxproj @@ -59,7 +59,6 @@ <ClCompile Include="TextureEncoder.cpp" /> <ClCompile Include="TextureSampler.cpp" /> <ClCompile Include="TransformUnit.cpp" /> - <ClCompile Include="VideoConfigDialog.cpp" /> <ClCompile Include="XFMemLoader.cpp" /> </ItemGroup> <ItemGroup> @@ -87,7 +86,6 @@ <ClInclude Include="TransformUnit.h" /> <ClInclude Include="Vec3.h" /> <ClInclude Include="VideoBackend.h" /> - <ClInclude Include="VideoConfigDialog.h" /> <ClInclude Include="XFMemLoader.h" /> </ItemGroup> <ItemGroup> diff --git a/Source/Core/VideoBackends/Software/VideoBackend.h b/Source/Core/VideoBackends/Software/VideoBackend.h index 4694945a5c..dbfe1c7cab 100644 --- a/Source/Core/VideoBackends/Software/VideoBackend.h +++ b/Source/Core/VideoBackends/Software/VideoBackend.h @@ -14,6 +14,7 @@ class VideoSoftware : public VideoBackend void Shutdown() override; std::string GetName() const override; + std::string GetDisplayName() const override; void EmuStateChange(EMUSTATE_CHANGE newState) override; |
