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

@ -111,7 +111,7 @@ static std::vector<std::string> GetShaders(const std::string& sub_dir = "")
return result;
}
static void InitBackendInfo()
void VideoBackend::InitBackendInfo()
{
g_Config.backend_info.APIType = API_OPENGL;
g_Config.backend_info.bSupportsExclusiveFullscreen = false;
@ -137,14 +137,6 @@ static void InitBackendInfo()
g_Config.backend_info.AnaglyphShaders = GetShaders(ANAGLYPH_DIR DIR_SEP);
}
void VideoBackend::ShowConfig(void* parent_handle)
{
if (!m_initialized)
InitBackendInfo();
Host_ShowVideoConfig(parent_handle, GetDisplayName(), GetConfigName());
}
bool VideoBackend::Initialize(void* window_handle)
{
InitBackendInfo();