[fix] Add CanvasContext to wbuilder (#5287)

The widget builder was broken by <https://github.com/koreader/koreader/pull/4580>.
pull/5290/head
Frans de Jonge 5 years ago committed by GitHub
parent 37bab4fe89
commit e191bf405d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,6 +19,8 @@ if lang_locale then
_.changeLang(lang_locale)
end
local Device = require("device")
local CanvasContext = require("document/canvascontext")
CanvasContext:init(Device)
local UIManager = require("ui/uimanager")
local RenderText = require("ui/rendertext")
local Font = require("ui/font")

Loading…
Cancel
Save