From 344ee7c8674f65decf6186f5a8d940620e1a9e9e Mon Sep 17 00:00:00 2001 From: Star Brilliant Date: Tue, 29 Apr 2014 21:50:05 +0800 Subject: [PATCH] Fix typo: a minus sign --- danmaku2ass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: