From 571656c64f8456ca8638ee398f44df59b8ce4c2e Mon Sep 17 00:00:00 2001 From: Green Sky Date: Thu, 6 Nov 2025 11:20:12 +0100 Subject: [PATCH] add quick half and double scale buttons --- src/chat_gui/send_image_popup.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/chat_gui/send_image_popup.cpp b/src/chat_gui/send_image_popup.cpp index f4466ae..4216a15 100644 --- a/src/chat_gui/send_image_popup.cpp +++ b/src/chat_gui/send_image_popup.cpp @@ -475,6 +475,16 @@ void SendImagePopup::render(float time_delta) { scale_x = scale_y; } ImGui::SameLine(); + if (ImGui::Button("/2##scale")) { + scale_x *= 0.5f; + scale_y *= 0.5f; + } + ImGui::SameLine(); + if (ImGui::Button("*2##scale")) { + scale_x *= 2.f; + scale_y *= 2.f; + } + ImGui::SameLine(); ImGui::Checkbox("tie", &scale_tie); if (scale_x <= 0.f) { scale_x = 0.001f; }