Skip to content

Commit 066ac59

Browse files
authored
Change border size to be 1 px (#2183)
* Change border size to be 1 px * Clarify border code in calcbreakdowncontrol
1 parent 2c3eff7 commit 066ac59

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/Classes/CalcBreakdownControl.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -704,10 +704,11 @@ function CalcBreakdownClass:Draw(viewPort)
704704
else
705705
SetDrawColor(0.33, 0.66, 0.33)
706706
end
707-
DrawImage(nil, x, y, width, 2)
708-
DrawImage(nil, x, y + height - 2, width, 2)
709-
DrawImage(nil, x, y, 2, height)
710-
DrawImage(nil, x + width - 2, y, 2, height)
707+
local borderThickness = 2
708+
DrawImage(nil, x, y, width, borderThickness)
709+
DrawImage(nil, x, y + height - borderThickness, width, borderThickness)
710+
DrawImage(nil, x, y, borderThickness, height)
711+
DrawImage(nil, x + width - borderThickness, y, borderThickness, height)
711712
SetDrawLayer(nil, 10)
712713
self:DrawControls(viewPort)
713714
-- Draw the sections

src/Classes/Tooltip.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ local s_gmatch = string.gmatch
1111

1212
-- Constants
1313

14-
local BORDER_WIDTH = 3
14+
local BORDER_WIDTH = 1
1515
local H_PAD = 12
1616
local V_PAD = 10
1717
-- spell-checker: disable

0 commit comments

Comments
 (0)