mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Change the minimum scale factor in Vizia to 0.5
This commit is contained in:
@@ -95,8 +95,9 @@ impl View for ResizeHandle {
|
||||
* (compensated_physical_x / start_physical_x)
|
||||
.max(compensated_physical_y / start_physical_y)
|
||||
as f64)
|
||||
// Prevent approaching zero here because uh
|
||||
.max(0.25);
|
||||
// Vizia rounds borders to integer pixels, and at <0.5 scaling one pixel
|
||||
// borders will simply disappear
|
||||
.max(0.5);
|
||||
|
||||
// If this is different then the window will automatically be resized at the end
|
||||
// of the frame
|
||||
|
||||
Reference in New Issue
Block a user