| 1157 | } |
| 1158 | |
| 1159 | void MainWindow::OnDebugViewPPCDebugger(wxCommandEvent& event) |
| 1160 | { |
| 1161 | if (m_debugger_window && m_debugger_window->IsShown()) |
| 1162 | { |
| 1163 | m_debugger_window->Close(); |
| 1164 | m_debugger_window = nullptr; |
| 1165 | return; |
| 1166 | } |
| 1167 | |
| 1168 | auto rect = GetDesktopRect(); |
| 1169 | /* |
| 1170 | sint32 new_width = max(rect.GetWidth() * 0.70, rect.GetWidth() - 850); |
| 1171 | this->SetSize(new_width, 480);*/ |
| 1172 | |
| 1173 | this->SetSize(800, 450 + 50); |
| 1174 | this->CenterOnScreen(); |
| 1175 | |
| 1176 | auto pos = this->GetPosition(); |
| 1177 | pos.y = std::min(pos.y + 200, rect.GetHeight() - 400); |
| 1178 | this->SetPosition(pos); |
| 1179 | |
| 1180 | m_debugger_window = new DebuggerWindow2(*this, rect); |
| 1181 | m_debugger_window->Bind(wxEVT_CLOSE_WINDOW, &MainWindow::OnDebuggerClose, this); |
| 1182 | m_debugger_window->Show(true); |
| 1183 | } |
| 1184 | |
| 1185 | void MainWindow::OnDebugViewAudioDebugger(wxCommandEvent& event) |
| 1186 | { |
nothing calls this directly
no test coverage detected