Enable a dockspace, so you can dock windows to the sides of the screen

This commit is contained in:
Henrik Rydgård 2024-12-12 23:01:40 +01:00
parent fa3321ca0c
commit 60e244291a
2 changed files with 3 additions and 1 deletions

View file

@ -3067,7 +3067,7 @@ void TextureCacheCommon::DrawImGuiDebug(uint64_t &selectedTextureId) const {
ImVec2 avail = ImGui::GetContentRegionAvail();
auto &style = ImGui::GetStyle();
ImGui::BeginChild("left", ImVec2(140.0f, 0.0f), ImGuiChildFlags_ResizeX);
float window_visible_x2 = ImGui::GetCursorPosX() + ImGui::GetContentRegionAvail().x;
float window_visible_x2 = ImGui::GetCursorScreenPos().x + ImGui::GetContentRegionAvail().x;
// Global texture stats
int replacementStateCounts[(int)ReplacementState::COUNT]{};

View file

@ -1686,6 +1686,8 @@ void EmuScreen::renderImDebugger() {
io.AddKeyEvent(ImGuiMod_Alt, keyAltLeft_ || keyAltRight_);
// io.AddKeyEvent(ImGuiMod_Super, e.key.super);
ImGui::DockSpaceOverViewport(0, ImGui::GetMainViewport(), ImGuiDockNodeFlags_PassthruCentralNode);
imDebugger_->Frame(currentDebugMIPS, gpuDebug);
ImGui::Render();