Skip to content

Commit

Permalink
Rename width to limit
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic2kk committed Nov 18, 2020
1 parent 3074070 commit 2c638d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/demo/typo.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
typo = {}

function typo_new(text, delay, width, align, x, y, font, colour)
function typo_new(text, delay, limit, align, x, y, font, colour)
local t = {
t = text,
delay = delay,
width = width,
limit = limit,
align = align,
x = x,
y = y,
Expand Down Expand Up @@ -47,6 +47,6 @@ function typo_draw()
for i,v in ipairs(typo) do
love.graphics.setColor(v.colour)
love.graphics.setFont(v.font)
love.graphics.printf(v.text, v.x, v.y, v.width, v.align)
love.graphics.printf(v.text, v.x, v.y, v.limit, v.align)
end
end

0 comments on commit 2c638d0

Please sign in to comment.