diff --git a/大鱼调色/Plugin/DYLevelGeometry.h b/大鱼调色/Plugin/DYLevelGeometry.h index 2450beb..e6dc5b5 100644 --- a/大鱼调色/Plugin/DYLevelGeometry.h +++ b/大鱼调色/Plugin/DYLevelGeometry.h @@ -13,7 +13,7 @@ inline double DYLevelDelta(CGPoint first, CGPoint second, double aspect, bool ve struct DYLevelTransform { double aspect, cosine, sine, zoom; - DYLevelTransform(double angle, double displayAspect) + DYLevelTransform(double angle = 0, double displayAspect = 1) : aspect(displayAspect), cosine(std::cos(angle)), sine(std::sin(angle)), zoom(std::max(1., std::abs(cosine) + std::abs(sine) * std::max(aspect, 1. / aspect))) {} diff --git a/大鱼调色/Plugin/DYToolOSC.inc.h b/大鱼调色/Plugin/DYToolOSC.inc.h index 99362df..f874d4f 100644 --- a/大鱼调色/Plugin/DYToolOSC.inc.h +++ b/大鱼调色/Plugin/DYToolOSC.inc.h @@ -8,7 +8,7 @@ BOOL _stampHasSource,_stampDragging,_stampSaving,_stampNeedsRedraw; NSPoint _stampSource,_stampStart,_stampEnd; NSString *_stampFailure,*_levelFailure; - DYLevelTransform _level{0,1}; + DYLevelTransform _level; double _levelAngle; NSInteger _levelMode; CMTime _levelTime;