From b59ca9682ec179cff99c08a53ddcdecda9179a73 Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Wed, 26 Apr 2023 15:35:40 -0700 Subject: Qt/GeneralWidget and GraphicsWidget: Remove unused member variable m_xrr_config was used by the GeneralWidget::GetAvailableResolutions function to get the list of supported fullscreen resolutions when HAVE_XRANDR was set. aa4088a removed the ability to set that resolution in the UI, leaving the GetAvailableResolutions function unused. m_xrr_config is initialized in MainWindow which still uses it to toggle fullscreen, but the references in GeneralWidget and GraphicsWidget (which just ferried m_xrr_config from MainWindow to GeneralWidget) are now unnecessary and removed in this commit. --- Source/Core/DolphinQt/Config/Graphics/GraphicsWindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Source/Core/DolphinQt/Config/Graphics/GraphicsWindow.cpp') diff --git a/Source/Core/DolphinQt/Config/Graphics/GraphicsWindow.cpp b/Source/Core/DolphinQt/Config/Graphics/GraphicsWindow.cpp index e346a6d0dd..535458685c 100644 --- a/Source/Core/DolphinQt/Config/Graphics/GraphicsWindow.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/GraphicsWindow.cpp @@ -24,8 +24,7 @@ #include "VideoCommon/VideoBackendBase.h" #include "VideoCommon/VideoConfig.h" -GraphicsWindow::GraphicsWindow(X11Utils::XRRConfiguration* xrr_config, MainWindow* parent) - : QDialog(parent), m_xrr_config(xrr_config) +GraphicsWindow::GraphicsWindow(MainWindow* parent) : QDialog(parent) { CreateMainLayout(); @@ -46,7 +45,7 @@ void GraphicsWindow::CreateMainLayout() main_layout->addWidget(tab_widget); main_layout->addWidget(button_box); - auto* const general_widget = new GeneralWidget(m_xrr_config, this); + auto* const general_widget = new GeneralWidget(this); auto* const enhancements_widget = new EnhancementsWidget(this); auto* const hacks_widget = new HacksWidget(this); auto* const advanced_widget = new AdvancedWidget(this); -- cgit v1.2.3