summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/Graphics/HacksWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinQt/Config/Graphics/HacksWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/Graphics/HacksWidget.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/Source/Core/DolphinQt/Config/Graphics/HacksWidget.cpp b/Source/Core/DolphinQt/Config/Graphics/HacksWidget.cpp
index 21825a0687..0ac50ac38d 100644
--- a/Source/Core/DolphinQt/Config/Graphics/HacksWidget.cpp
+++ b/Source/Core/DolphinQt/Config/Graphics/HacksWidget.cpp
@@ -15,27 +15,20 @@
#include "DolphinQt/Config/ConfigControls/ConfigBool.h"
#include "DolphinQt/Config/ConfigControls/ConfigSlider.h"
#include "DolphinQt/Config/GameConfigWidget.h"
-#include "DolphinQt/Config/Graphics/GraphicsWindow.h"
+#include "DolphinQt/Config/Graphics/GraphicsPane.h"
#include "VideoCommon/VideoConfig.h"
-HacksWidget::HacksWidget(GraphicsWindow* parent)
+HacksWidget::HacksWidget(GraphicsPane* gfx_pane) : m_game_layer{gfx_pane->GetConfigLayer()}
{
CreateWidgets();
ConnectWidgets();
AddDescriptions();
- connect(parent, &GraphicsWindow::BackendChanged, this, &HacksWidget::OnBackendChanged);
+ connect(gfx_pane, &GraphicsPane::BackendChanged, this, &HacksWidget::OnBackendChanged);
OnBackendChanged(QString::fromStdString(Config::Get(Config::MAIN_GFX_BACKEND)));
connect(m_gpu_texture_decoding, &QCheckBox::toggled,
- [parent] { emit parent->UseGPUTextureDecodingChanged(); });
-}
-
-HacksWidget::HacksWidget(GameConfigWidget* parent, Config::Layer* layer) : m_game_layer(layer)
-{
- CreateWidgets();
- ConnectWidgets();
- AddDescriptions();
+ [gfx_pane] { emit gfx_pane->UseGPUTextureDecodingChanged(); });
}
void HacksWidget::CreateWidgets()