1
0
Fork 0

Change the minimum scale factor in Vizia to 0.5

This commit is contained in:
Robbert van der Helm 2023-12-30 17:58:54 +01:00
parent 25a25d0a40
commit 674e871d46
2 changed files with 6 additions and 2 deletions

View file

@ -40,6 +40,9 @@ state is to list breaking changes.
- `nih_debug_assert*!()` failures are now promoted to a warning instead of a - `nih_debug_assert*!()` failures are now promoted to a warning instead of a
debug message. This makes the non-fatal debug assertion failures easier to debug message. This makes the non-fatal debug assertion failures easier to
spot. spot.
- The minimum scale factor in `nih_plug_vizia` has changed from 0.25 to 0.5.
Vizia rounds things to single pixels, and below 0.5 scaling single pixel
borders would disappear when not using a HiDPI setup.
### Fixed ### Fixed

View file

@ -95,8 +95,9 @@ impl View for ResizeHandle {
* (compensated_physical_x / start_physical_x) * (compensated_physical_x / start_physical_x)
.max(compensated_physical_y / start_physical_y) .max(compensated_physical_y / start_physical_y)
as f64) as f64)
// Prevent approaching zero here because uh // Vizia rounds borders to integer pixels, and at <0.5 scaling one pixel
.max(0.25); // borders will simply disappear
.max(0.5);
// If this is different then the window will automatically be resized at the end // If this is different then the window will automatically be resized at the end
// of the frame // of the frame