fullscreen implementation
This commit is contained in:
@@ -71,6 +71,7 @@ function lib.create(name, w, h, x, y, do_not_add)
|
||||
y = y or 2,
|
||||
|
||||
-- column-major buffer: buffer[x][y] = {char, tc, bc}
|
||||
isFullscreen = false,
|
||||
buffer = {},
|
||||
cursorX = 1,
|
||||
cursorY = 1,
|
||||
@@ -329,7 +330,9 @@ function lib.create(name, w, h, x, y, do_not_add)
|
||||
t.buffer, t.w, t.h = newbuf, nw, nh
|
||||
end
|
||||
end
|
||||
|
||||
function t.fullscreen(fullscreen)
|
||||
t.isFullscreen = fullscreen or not t.isFullscreen
|
||||
end
|
||||
function t.redraw() end -- renderer handles this elsewhere
|
||||
|
||||
function t.setVisible(_) end
|
||||
|
||||
Reference in New Issue
Block a user