Fix black background in old debugger

This commit is contained in:
Henrik Rydgård committed 2024-11-07 11:27:42 +01:00
1 parent dd26bcf1af
commit 0535f5ebc1
1 file changed
+11 -1
+11 -1
View File
@@ -141,11 +141,21 @@ void ImDisasmWindow::Draw(MIPSDebugInterface *mipsDebug, bool *open, CoreState c
disasmView_.setDebugger(mipsDebug);
ImGui::SetNextWindowSize(ImVec2(520, 600), ImGuiCond_FirstUseEver);
if (!ImGui::Begin(title, open)) {
if (!ImGui::Begin(title, open, ImGuiWindowFlags_NoNavInputs)) {
ImGui::End();
return;
}
if (ImGui::IsWindowFocused()) {
// Process stepping keyboard shortcuts.
if (ImGui::IsKeyPressed(ImGuiKey_F10)) {
Core_RequestSingleStep(CPUStepType::Over, 0);
}
if (ImGui::IsKeyPressed(ImGuiKey_F11)) {
Core_RequestSingleStep(CPUStepType::Into, 0);
}
}
ImGui::BeginDisabled(coreState != CORE_STEPPING);
if (ImGui::SmallButton("Run")) {
Core_Resume();