VideoBackends: Merge ShowConfig functions.

This commit is contained in:
degasus
2016-01-13 21:38:11 +01:00
parent 7833ff25df
commit 5f2f462067
12 changed files with 21 additions and 44 deletions

View File

@ -67,7 +67,7 @@ std::string VideoBackend::GetConfigName() const
return "gfx_dx12";
}
void InitBackendInfo()
void VideoBackend::InitBackendInfo()
{
HRESULT hr = D3D::LoadDXGI();
if (FAILED(hr))
@ -157,12 +157,6 @@ void InitBackendInfo()
D3D::UnloadDXGI();
}
void VideoBackend::ShowConfig(void* hParent)
{
InitBackendInfo();
Host_ShowVideoConfig(hParent, GetDisplayName(), GetConfigName());
}
bool VideoBackend::Initialize(void* window_handle)
{
if (window_handle == nullptr)