diff --git a/danmaku2ass.py b/danmaku2ass.py index 61e2593..508965f 100755 --- a/danmaku2ass.py +++ b/danmaku2ass.py @@ -508,7 +508,7 @@ def GetZoomFactor(SourceSize, TargetSize): # Result: (rotX, rotY, rotZ, shearX, shearY) def ConvertFlashRotation(rotY, rotZ, X, Y, FOV=math.tan(2*math.pi/9.0)): def WrapAngle(deg): - return 180-((180+deg)%360) + return 180-((180-deg)%360) def CalcPerspectiveCorrection(alpha, X, FOV=FOV): alpha = WrapAngle(alpha) if FOV is None: