From 320f4c5f91af6c793d8cac7083a36444e54641b8 Mon Sep 17 00:00:00 2001 From: mac Date: Fri, 6 Nov 2026 11:30:41 +0800 Subject: [PATCH] Initialize the canvas geometry as an Objective-C++ instance member --- 大鱼调色/Plugin/DYLevelGeometry.h | 2 +- 大鱼调色/Plugin/DYToolOSC.inc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;