Device visualization - Improved performance to a good level for now

This commit is contained in:
SpoinkyNL committed 2020-04-16 22:39:39 +02:00
1 parent ae48ebc13a
commit 5dea0b25e5
6 files changed
+84 -61

No files matched your search

@@ -40,8 +40,8 @@ namespace Artemis.UI.Screens.Shared
else
Zoom *= 0.9;
// Limit to a min of 0.1 and a max of 4 (10% - 400% in the view)
Zoom = Math.Max(0.1, Math.Min(4, Zoom));
// Limit to a min of 0.1 and a max of 2.5 (10% - 250% in the view)
Zoom = Math.Max(0.1, Math.Min(2.5, Zoom));
// Update the PanX/Y to enable zooming relative to cursor
if (LimitToZero)