Skip to content

Commit 610a0a5

Browse files
github-actions[bot]vaisestLocalIdentity
authored
[pob2-port] Change border size to be 1 px (#9904)
* Apply changes from PathOfBuildingCommunity/PathOfBuilding-PoE2#2183 * Fix merge issue --------- Co-authored-by: vaisest <vaisest@users.noreply.github.com> Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 0058f9c commit 610a0a5

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
@@ -689,10 +689,11 @@ function CalcBreakdownClass:Draw(viewPort)
689689
else
690690
SetDrawColor(0.33, 0.66, 0.33)
691691
end
692-
DrawImage(nil, x, y, width, 2)
693-
DrawImage(nil, x, y + height - 2, width, 2)
694-
DrawImage(nil, x, y, 2, height)
695-
DrawImage(nil, x + width - 2, y, 2, height)
692+
local borderThickness = 2
693+
DrawImage(nil, x, y, width, borderThickness)
694+
DrawImage(nil, x, y + height - borderThickness, width, borderThickness)
695+
DrawImage(nil, x, y, borderThickness, height)
696+
DrawImage(nil, x + width - borderThickness, y, borderThickness, height)
696697
SetDrawLayer(nil, 10)
697698
self:DrawControls(viewPort)
698699
-- 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

0 commit comments

Comments
 (0)