add quick half and double scale buttons

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;
}
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; }