1
0
mirror of https://github.com/LDDestroier/CC/ synced 2024-11-08 19:09:58 +00:00

Fixed alwaysRender for write and blit

This commit is contained in:
LDDestroier 2019-12-14 00:00:31 +00:00 committed by GitHub
parent 8bb6075655
commit 7aa402b33e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,7 +238,7 @@ windont.newWindow = function( x, y, width, height, misc )
end
if meta.alwaysRender then
--local limit = math.max(0, meta.width - meta.cursorX + 1)
bT.setCursorPos(meta.x, meta.y)
bT.setCursorPos(meta.x, meta.y + meta.cursorY - 1)
bT.blit(
table.unpack(meta.buffer[1][meta.cursorY]),
table.unpack(meta.buffer[2][meta.cursorY]),
@ -260,7 +260,7 @@ windont.newWindow = function( x, y, width, height, misc )
end
if meta.alwaysRender then
--local limit = math.max(0, meta.width - meta.cursorX + 1)
bT.setCursorPos(meta.x, meta.y)
bT.setCursorPos(meta.x, meta.y + meta.cursorY - 1)
bT.blit(
table.unpack(meta.buffer[1][meta.cursorY]),
table.unpack(meta.buffer[2][meta.cursorY]),