Skip to content

Commit

Permalink
Center << icon vertically
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Oct 8, 2023
1 parent 96cf771 commit fdbf58c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tptmp/client/side_button.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ local function new(params)
local text = "<<"
local tw, th = gfx.textSize(text)
local tx = pos_x + math.ceil((width - tw) / 2)
local ty = pos_y + math.floor((height - th) / 2)
local ty = pos_y + math.ceil((height - th) / 2)
return setmetatable({
text_ = text,
tx_ = tx,
Expand Down

0 comments on commit fdbf58c

Please sign in to comment.