I hope it's not user error but when switching in and out of fullscreen, notable flickering begins to occur on canvases. Sample code is below. I just took most of those from the examples given by the documentation to make sure it's not me messing up
`local ui = require "ui"
require "canvas"
-- create a simple window
local win = ui.Window("Window.fullscreen sample", 320, 200)
local button = ui.Button(win, "Switch to fullscreen")
button:center()
local Canvas = ui.Canvas(win)
local image = Canvas:Image("image.png")
function button:onClick()
win.fullscreen = not win.fullscreen
button.text = win.fullscreen and "Disable fullscreen" or "Switch to fullscreen"
button:center()
end
function Canvas:onPaint()
Canvas:clear()
image:drawrect(0,0, win.width, win.height)
end
win:show()
repeat
ui.update()
until not win.visible
`