1
0
mirror of https://github.com/LDDestroier/CC/ synced 2024-11-13 21:34:54 +00:00

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

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