From 12a36d08e2852ba8200ae677ad7166992a976f7d Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 20 Nov 2020 11:57:40 +0100 Subject: [PATCH] Fixed hex editor selection to act weird on right click --- libs/ImGui/include/imgui_memory_editor.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/libs/ImGui/include/imgui_memory_editor.h b/libs/ImGui/include/imgui_memory_editor.h index e86575288..24c04d75b 100644 --- a/libs/ImGui/include/imgui_memory_editor.h +++ b/libs/ImGui/include/imgui_memory_editor.h @@ -412,10 +412,10 @@ struct MemoryEditor if (ImGui::IsMouseDoubleClicked(0)) { DataEditingTakeFocus = true; data_editing_addr_next = addr; - } else { - DataPreviewAddr = addr; - DataPreviewAddrEnd = addr; } + + DataPreviewAddr = addr; + DataPreviewAddrEnd = addr; } if (!ReadOnly && ImGui::IsItemHovered() && ((ImGui::IsMouseClicked(0) && ImGui::GetIO().KeyShift) || ImGui::IsMouseDragging(0))) { DataPreviewAddrEnd = addr; @@ -472,10 +472,11 @@ struct MemoryEditor if (ImGui::IsMouseDoubleClicked(0)) { DataEditingTakeFocus = true; data_editing_addr_next = addr; - } else { - DataPreviewAddr = addr; - DataPreviewAddrEnd = addr; } + + DataPreviewAddr = addr; + DataPreviewAddrEnd = addr; + } if (!ReadOnly && ImGui::IsItemHovered() && ((ImGui::IsMouseClicked(0) && ImGui::GetIO().KeyShift) || ImGui::IsMouseDragging(0))) { DataPreviewAddrEnd = addr;