Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.Core/FileFormats/CWSFile.cs')
-rw-r--r--UVtools.Core/FileFormats/CWSFile.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/UVtools.Core/FileFormats/CWSFile.cs b/UVtools.Core/FileFormats/CWSFile.cs
index d55e6cc..77828ca 100644
--- a/UVtools.Core/FileFormats/CWSFile.cs
+++ b/UVtools.Core/FileFormats/CWSFile.cs
@@ -164,6 +164,17 @@ namespace UVtools.Core.FileFormats
set => OutputSettings.YResolution = SliceSettings.Yres = (ushort) value;
}
+ public override float DisplayWidth
+ {
+ get => OutputSettings.PlatformXSize;
+ set => OutputSettings.PlatformXSize = value;
+ }
+ public override float DisplayHeight
+ {
+ get => OutputSettings.PlatformYSize;
+ set => OutputSettings.PlatformYSize = value;
+ }
+
public override byte AntiAliasing => (byte) OutputSettings.AntiAliasingValue;
public override float LayerHeight
@@ -579,7 +590,7 @@ namespace UVtools.Core.FileFormats
}
}
// delay = max(extra['wait'], 500) + int(((int(lift)/(extra['lift_feed']/60)) + (int(lift)/(extra['lift_retract']/60)))*1000)
- uint extraDelay = (uint)(((LiftHeight / (LiftSpeed / 60f)) + (LiftHeight / (RetractSpeed / 60f))) * 1000);
+ uint extraDelay = (uint)(OperationCalculator.LightOffDelayC.Calculate(LiftHeight, LiftHeight, RetractSpeed) * 1000);
if (layerIndex < BottomLayerCount)
{
extraDelay = (uint)Math.Max(extraDelay + 10000, layer.ExposureTime * 1000);