Skip to content

Commit 76a21e2

Browse files
committed
Reverted subtraction in offset calculation
Tested on my system, is pixel perfect without the subtraction.
1 parent 9cde83d commit 76a21e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

@Resources/scripts/Rotate.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function Initialize()
1010
-- Set options for each config
1111
local barHeight = SKIN:ParseFormula(SKIN:GetVariable("BarHeight"))
1212
local barWidth, barGap = SKIN:ParseFormula(SKIN:GetVariable("BarWidth")) * SKIN:ParseFormula(SKIN:GetVariable("ScaleVisualizer")), SKIN:ParseFormula(SKIN:GetVariable("BarGap")) * SKIN:ParseFormula(SKIN:GetVariable("ScaleVisualizer"))
13-
local offset = math.ceil(barWidth) + math.ceil(barGap) -1
13+
local offset = math.ceil(barWidth) + math.ceil(barGap)
1414
local angle = SKIN:ParseFormula(SKIN:GetVariable("Angle"))
1515
local meterName, lowerLimit, upperLimit = {}, 1, SKIN:ParseFormula(SKIN:GetVariable("BarCount"))
1616

0 commit comments

Comments
 (0)