mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
VideoConfigDiag: Move event implementations into the cpp file
Also removes the unused Event_Adapter event stub which did nothing. It wasn't even hooked up to wx's event system. Allows removing several includes from the header file and moving them to the cpp file. Prevents includes being dumped into other source files that include the header. This uncovered an indirect include in Main for MsgHandler utilities.
This commit is contained in:
@ -29,6 +29,7 @@
|
||||
#include "Common/FileUtil.h"
|
||||
#include "Common/IniFile.h"
|
||||
#include "Common/Logging/LogManager.h"
|
||||
#include "Common/MsgHandler.h"
|
||||
#include "Common/Thread.h"
|
||||
|
||||
#include "Core/Analytics.h"
|
||||
@ -531,14 +532,16 @@ void Host_ConnectWiimote(int wm_idx, bool connect)
|
||||
|
||||
void Host_ShowVideoConfig(void* parent, const std::string& backend_name)
|
||||
{
|
||||
wxWindow* const parent_window = static_cast<wxWindow*>(parent);
|
||||
|
||||
if (backend_name == "Software Renderer")
|
||||
{
|
||||
SoftwareVideoConfigDialog diag((wxWindow*)parent, backend_name);
|
||||
SoftwareVideoConfigDialog diag(parent_window, backend_name);
|
||||
diag.ShowModal();
|
||||
}
|
||||
else
|
||||
{
|
||||
VideoConfigDiag diag((wxWindow*)parent, backend_name);
|
||||
VideoConfigDiag diag(parent_window, backend_name);
|
||||
diag.ShowModal();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user