Added options to a window's redraw function

This commit is contained in:
LDDestroier 2020-02-23 19:03:50 -05:00 committed by GitHub
parent 5b525dcb6f
commit f316695a30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -634,11 +634,15 @@ windont.newWindow = function( x, y, width, height, misc )
end
end
output.redraw = function(x1, x2, y)
output.redraw = function(x1, x2, y, options)
options = options or {}
options.onlyX1 = x1
options.onlyX2 = x2
options.onlyY = y
if #meta.renderBuddies > 0 then
windont.render({onlyX1 = x1, onlyX2 = x2, onlyY = y}, output, table.unpack(meta.renderBuddies))
windont.render(options, output, table.unpack(meta.renderBuddies))
else
windont.render({onlyX1 = x1, onlyX2 = x2, onlyY = y}, output)
windont.render(options, output)
end
output.restoreCursor()
end