mirror of
https://github.com/mattrberry/crab.git
synced 2025-02-04 08:46:04 +01:00
prevent scheduler window from crashing the emulator when minimized
This commit is contained in:
parent
0f21ea6aea
commit
515d12aaa2
1 changed files with 12 additions and 11 deletions
|
@ -41,7 +41,7 @@ class GBAController < Controller
|
||||||
cycles = @emu.scheduler.cycles
|
cycles = @emu.scheduler.cycles
|
||||||
ImGui.begin("Scheduler", pointerof(@scheduler_window))
|
ImGui.begin("Scheduler", pointerof(@scheduler_window))
|
||||||
ImGui.text("Total cycles: #{cycles}")
|
ImGui.text("Total cycles: #{cycles}")
|
||||||
ImGui.begin_table("Table", 2)
|
if ImGui.begin_table("Table", 2)
|
||||||
ImGui.table_setup_column("Cycles")
|
ImGui.table_setup_column("Cycles")
|
||||||
ImGui.table_setup_column("Type")
|
ImGui.table_setup_column("Type")
|
||||||
ImGui.table_headers_row
|
ImGui.table_headers_row
|
||||||
|
@ -53,6 +53,7 @@ class GBAController < Controller
|
||||||
ImGui.text_unformatted event.type.to_s
|
ImGui.text_unformatted event.type.to_s
|
||||||
end
|
end
|
||||||
ImGui.end_table
|
ImGui.end_table
|
||||||
|
end
|
||||||
ImGui.end
|
ImGui.end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue