Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Mark the Direct3D9 backend deprecated.
  • Loading branch information
neobrain committed Mar 23, 2013
1 parent 816020f commit bb3ce1f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions Source/Core/Common/Src/VideoBackendBase.h
Expand Up @@ -97,6 +97,7 @@ class VideoBackend
virtual void RunLoop(bool enable) = 0;

virtual std::string GetName() = 0;
virtual std::string GetDisplayName() { return GetName(); }

virtual void ShowConfig(void*) {}

Expand Down
4 changes: 2 additions & 2 deletions Source/Core/DolphinWX/Src/VideoConfigDiag.cpp
Expand Up @@ -212,9 +212,9 @@ VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, con
it = g_available_video_backends.begin(),
itend = g_available_video_backends.end();
for (; it != itend; ++it)
choice_backend->AppendString(wxGetTranslation(StrToWxStr((*it)->GetName())));
choice_backend->AppendString(wxGetTranslation(StrToWxStr((*it)->GetDisplayName())));

choice_backend->SetStringSelection(wxGetTranslation(StrToWxStr(g_video_backend->GetName())));
choice_backend->SetStringSelection(wxGetTranslation(StrToWxStr(g_video_backend->GetDisplayName())));
choice_backend->Bind(wxEVT_COMMAND_CHOICE_SELECTED, &VideoConfigDiag::Event_Backend, this);

szr_basic->Add(label_backend, 1, wxALIGN_CENTER_VERTICAL, 5);
Expand Down
1 change: 1 addition & 0 deletions Source/Plugins/Plugin_VideoDX9/Src/VideoBackend.h
Expand Up @@ -13,6 +13,7 @@ class VideoBackend : public VideoBackendHardware
void Shutdown();

std::string GetName();
std::string GetDisplayName();

void Video_Prepare();
void Video_Cleanup();
Expand Down
5 changes: 5 additions & 0 deletions Source/Plugins/Plugin_VideoDX9/Src/main.cpp
Expand Up @@ -87,6 +87,11 @@ std::string VideoBackend::GetName()
return "Direct3D9";
}

std::string VideoBackend::GetDisplayName()
{
return "Direct3D9 (deprecated)";
}

void InitBackendInfo()
{
DX9::D3D::Init();
Expand Down

0 comments on commit bb3ce1f

Please sign in to comment.