Skip to content

Commit f923cda

Browse files
committed
Clarify border code in calcbreakdowncontrol
1 parent b861c78 commit f923cda

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/Classes/CalcBreakdownControl.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -698,10 +698,11 @@ function CalcBreakdownClass:Draw(viewPort)
698698
else
699699
SetDrawColor(0.33, 0.66, 0.33)
700700
end
701-
DrawImage(nil, x, y, width, 2)
702-
DrawImage(nil, x, y + height - 2, width, 2)
703-
DrawImage(nil, x, y, 2, height)
704-
DrawImage(nil, x + width - 2, y, 2, height)
701+
local borderThickness = 2
702+
DrawImage(nil, x, y, width, borderThickness)
703+
DrawImage(nil, x, y + height - borderThickness, width, borderThickness)
704+
DrawImage(nil, x, y, borderThickness, height)
705+
DrawImage(nil, x + width - borderThickness, y, borderThickness, height)
705706
SetDrawLayer(nil, 10)
706707
self:DrawControls(viewPort)
707708
-- Draw the sections

0 commit comments

Comments
 (0)