summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_DSP_HLE/Src/Debugger/Debugger.cpp
diff options
context:
space:
mode:
authorJohn Peterson <jpeterson57@gmail.com>2008-10-09 18:47:53 +0000
committerJohn Peterson <jpeterson57@gmail.com>2008-10-09 18:47:53 +0000
commitd4f8f0d3ae2baf36867ff5863b81dfd541714cc6 (patch)
treed22f488762c03ade9ac6dd84104ffecdc6299cc1 /Source/Plugins/Plugin_DSP_HLE/Src/Debugger/Debugger.cpp
parentef617bc4f48f1e34c2b18690d7e9dd045f99f4fe (diff)
Added the StretchToFit option to the config menu in the OpenGL plugin. This fixes the blackness in SSBM. I also added a keep aspect ratio option, it will keep your aspect ratio at 4:3, but then SSBM will have the blackness problem again. You find the options under the Enhancements window in the OpenGL configuration.
I also added a wx debugging window for the OpenGL plugin. I connected it to the old console window that was in the plugin. Other than that it doesn't do anything at the moment but it could be useful to show all the current important information and parameter statuses and so on. Again there's a problem with wx windows collisions. Show() can't be used because then DLL_PROCESS_DETACH is called immediately after the window is opened, and if we open it with ShowModal() before we have loaded a game the main video window will be blocked. And we can't pass on any variables from a DllDebugger() that is called when Dolphin is started because the dll is reloaded and lose all variables sometime before a game is loaded. So we can't auto open the window that way. So I made the debugging window open as a game is loaded if it is enabled in the ini, the downside is that the ini setting will open the window even if we are not opening Dolphin with the -d flag. However, this will only affect people that have used the debugger at least once so in my opinion this is the most convenient solution. But feel free to come up with a better solution. Preferably some solution to how to use Show() and preventing DLL_PROCESS_DETACH to be called. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@812 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_DSP_HLE/Src/Debugger/Debugger.cpp')
-rw-r--r--Source/Plugins/Plugin_DSP_HLE/Src/Debugger/Debugger.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/Debugger/Debugger.cpp b/Source/Plugins/Plugin_DSP_HLE/Src/Debugger/Debugger.cpp
index 63be782f05..f4d67457a2 100644
--- a/Source/Plugins/Plugin_DSP_HLE/Src/Debugger/Debugger.cpp
+++ b/Source/Plugins/Plugin_DSP_HLE/Src/Debugger/Debugger.cpp
@@ -37,7 +37,7 @@ extern bool gOnlyLooping;
// =======================================================================================
// Declare events
-BEGIN_EVENT_TABLE(CDebugger,wxDialog)
+BEGIN_EVENT_TABLE(CDebugger,wxDialog)
EVT_CLOSE(CDebugger::OnClose)
EVT_BUTTON(ID_UPD,CDebugger::OnUpdate)
EVT_CHECKBOX(IDC_CHECK0,CDebugger::SaveFile)
@@ -74,7 +74,6 @@ CDebugger::~CDebugger()
// empty
IniFile file;
file.Load("Debugger.ini");
-
this->Save(file);
file.Save("Debugger.ini");
}
@@ -266,7 +265,13 @@ SetTitle(wxT("Sound Debugging"));
}
void CDebugger::OnClose(wxCloseEvent& /*event*/)
-{
+{
+ // save the window position when we hide the window to
+ IniFile file;
+ file.Load("Debugger.ini");
+ this->Save(file);
+ file.Save("Debugger.ini");
+
EndModal(0);
// I turned this off for now because of the ShowModal() problem and because I wanted
@@ -428,7 +433,6 @@ void CDebugger::DoShowHideConsole()
if(m_Check[2]->IsChecked())
{
OpenConsole();
-
}
else
{