mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Enable a dockspace, so you can dock windows to the sides of the screen
This commit is contained in:
parent
fa3321ca0c
commit
60e244291a
2 changed files with 3 additions and 1 deletions
|
@ -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]{};
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue