add quick half and double scale buttons
Some checks failed
ContinuousDelivery / linux-ubuntu (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousDelivery / windows (windows-2022, ) (push) Has been cancelled
ContinuousDelivery / windows (windows-2022, asan) (push) Has been cancelled
ContinuousIntegration / on ubuntu-24.04-arm (push) Has been cancelled
ContinuousIntegration / asan on ubuntu-24.04-arm (push) Has been cancelled
ContinuousIntegration / on ubuntu-latest (push) Has been cancelled
ContinuousIntegration / asan on ubuntu-latest (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousIntegration / macos (push) Has been cancelled
ContinuousIntegration / windows (push) Has been cancelled
ContinuousDelivery / dumpsyms (push) Has been cancelled
ContinuousDelivery / release (push) Has been cancelled

This commit is contained in:
Green Sky
2025-11-06 11:20:12 +01:00
parent 1547999ec0
commit 571656c64f

View File

@@ -475,6 +475,16 @@ void SendImagePopup::render(float time_delta) {
scale_x = scale_y; scale_x = scale_y;
} }
ImGui::SameLine(); 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); ImGui::Checkbox("tie", &scale_tie);
if (scale_x <= 0.f) { scale_x = 0.001f; } if (scale_x <= 0.f) { scale_x = 0.001f; }