From bc504d9f8439ebe688b174232e5f0874f9560b7c Mon Sep 17 00:00:00 2001 From: spycrab Date: Sat, 19 May 2018 17:44:22 +0200 Subject: [PATCH] Qt/GraphicsWindow: Show display name in title --- Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp b/Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp index 8cbe383e18..638eaf73a2 100644 --- a/Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp +++ b/Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp @@ -12,6 +12,7 @@ #include #include "Core/ConfigManager.h" + #include "DolphinQt2/Config/Graphics/AdvancedWidget.h" #include "DolphinQt2/Config/Graphics/EnhancementsWidget.h" #include "DolphinQt2/Config/Graphics/GeneralWidget.h" @@ -19,6 +20,8 @@ #include "DolphinQt2/Config/Graphics/SoftwareRendererWidget.h" #include "DolphinQt2/MainWindow.h" #include "DolphinQt2/QtUtils/WrapInScrollArea.h" + +#include "VideoCommon/VideoBackendBase.h" #include "VideoCommon/VideoConfig.h" GraphicsWindow::GraphicsWindow(X11Utils::XRRConfiguration* xrr_config, MainWindow* parent) @@ -93,7 +96,8 @@ void GraphicsWindow::CreateMainLayout() void GraphicsWindow::OnBackendChanged(const QString& backend) { - setWindowTitle(tr("Dolphin %1 Graphics Configuration").arg(backend)); + setWindowTitle(tr("%1 Graphics Configuration") + .arg(QString::fromStdString(g_video_backend->GetDisplayName()))); if (backend == QStringLiteral("Software Renderer") && m_tab_widget->count() > 1) { m_tab_widget->clear();