From e80c149492ecee281819d610f1e5e939931375ff Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Mon, 29 Jun 2015 13:16:32 -0700 Subject: [PATCH] Fixing button repeat in trace viewer. --- src/xenia/gpu/xe-gpu-trace-viewer.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xenia/gpu/xe-gpu-trace-viewer.cc b/src/xenia/gpu/xe-gpu-trace-viewer.cc index fd74eff22..b71f56762 100644 --- a/src/xenia/gpu/xe-gpu-trace-viewer.cc +++ b/src/xenia/gpu/xe-gpu-trace-viewer.cc @@ -859,11 +859,13 @@ void DrawControllerUI(xe::ui::MainWindow* window, TracePlayer& player, ImGui::SetTooltip("Reset to first frame"); } ImGui::SameLine(); + ImGui::PushButtonRepeat(true); if (ImGui::Button(">>", ImVec2(0, 0))) { if (target_frame + 1 < player.frame_count()) { ++target_frame; } } + ImGui::PopButtonRepeat(); if (ImGui::IsItemHovered()) { ImGui::SetTooltip("Next frame (hold for continuous)"); } @@ -913,6 +915,7 @@ void DrawCommandListUI(xe::ui::MainWindow* window, TracePlayer& player, ImGui::SetTooltip("Reset to before any frame commands"); } ImGui::SameLine(); + ImGui::PushButtonRepeat(true); if (ImGui::Button("prev", ImVec2(0, 0))) { if (target_command >= 0) { --target_command; @@ -930,6 +933,7 @@ void DrawCommandListUI(xe::ui::MainWindow* window, TracePlayer& player, if (ImGui::IsItemHovered()) { ImGui::SetTooltip("Move to the next command (hold)"); } + ImGui::PopButtonRepeat(); ImGui::SameLine(); if (ImGui::Button("end")) { target_command = command_count - 1;